public virtual void callPropertysSetMethods()
{
foreach(Property prop in iddefpropertys_.Values)
{
object oldval = getDefinedPropertyByUType(prop.properUtype);
System.Reflection.MethodInfo setmethod = prop.setmethod;
if(setmethod != null)
{
if(prop.isBase())
{
if(inited && !inWorld)
{
//Dbg.DEBUG_MSG(className + "::callPropertysSetMethods(" + prop.name + ")");
setmethod.Invoke(this, new object[]{oldval});
}
}
else
{
if(inWorld)
{
if(prop.isOwnerOnly() && !isPlayer())
continue;
setmethod.Invoke(this, new object[]{oldval});
}
}
}
else
{
//Dbg.DEBUG_MSG(className + "::callPropertysSetMethods(" + prop.name + ") not found set_*");
}
}
}