public getDefinedProperty ( string name ) : object | ||
name | string | |
return | object |
public object getDefinedProperty(string name)
{
Property obj = null;
if(!defpropertys_.TryGetValue(name, out obj))
{
return null;
}
return defpropertys_[name].val;
}
public void set_fightValue(KBEngine.Entity entity, object v) { v = entity.getDefinedProperty("fightValue"); PlayerMediator.playerInfo.fightValue = int.Parse(v.ToString()); if (MainMediator.mainMediator == null) { return; } Facade.SendNotification(NotificationID.Fight_Change); }