public void AddState(int objId, string state) { EntityInfo entity = m_Scene.EntityManager.GetEntityInfo(objId); if (null != entity) { entity.AddState((CharacterPropertyEnum)CharacterStateUtility.NameToState(state)); } }
internal void AddState(int objId, string state) { EntityInfo entity = m_Scene.EntityManager.GetEntityInfo(objId); if (null != entity) { entity.SetStateFlag(Operate_Type.OT_AddBit, CharacterStateUtility.FromString(state)); } }
public bool HaveState(int objId, string state) { EntityInfo entity = m_Scene.EntityManager.GetEntityInfo(objId); if (null != entity) { return(entity.HaveState((CharacterPropertyEnum)CharacterStateUtility.NameToState(state))); } return(false); }
public void AddState(int objId, string state) { EntityViewModel view = GetEntityViewById(objId); if (null != view && null != view.Entity) { EntityInfo entity = view.Entity; entity.AddState((CharacterPropertyEnum)CharacterStateUtility.NameToState(state)); } }
internal bool HaveState(int objId, string state) { EntityInfo entity = m_Scene.EntityManager.GetEntityInfo(objId); if (null != entity) { return(entity.IsHaveStateFlag(CharacterStateUtility.FromString(state))); } return(false); }
internal void AddState(int objId, string state) { EntityViewModel view = GetEntityViewById(objId); if (null != view && null != view.Entity) { EntityInfo entity = view.Entity; entity.SetStateFlag(Operate_Type.OT_AddBit, CharacterStateUtility.FromString(state)); } }
public bool HaveState(int objId, string state) { EntityViewModel view = GetEntityViewById(objId); if (null != view && null != view.Entity) { EntityInfo npc = view.Entity; return(npc.HaveState((CharacterPropertyEnum)CharacterStateUtility.NameToState(state))); } return(false); }
internal bool HaveState(int objId, string state) { EntityViewModel view = GetEntityViewById(objId); if (null != view && null != view.Entity) { EntityInfo npc = view.Entity; return(npc.IsHaveStateFlag(CharacterStateUtility.FromString(state))); } return(false); }
public void DisableState(int objId, string state) { EntityViewModel view = GetEntityViewById(objId); if (null != view && null != view.Entity) { EntityInfo npc = view.Entity; if (!string.IsNullOrEmpty(state)) { npc.DisableState((CharacterPropertyEnum)CharacterStateUtility.NameToState(state)); } } }
public void RemoveState(int objId, string state) { EntityInfo entity = m_Scene.EntityManager.GetEntityInfo(objId); if (null != entity) { if (string.IsNullOrEmpty(state)) { //entity.StateFlag = 0; } else { entity.RemoveState((CharacterPropertyEnum)CharacterStateUtility.NameToState(state)); } } }
internal void RemoveState(int objId, string state) { EntityInfo entity = m_Scene.EntityManager.GetEntityInfo(objId); if (null != entity) { if (string.IsNullOrEmpty(state)) { entity.StateFlag = 0; } else { entity.SetStateFlag(Operate_Type.OT_RemoveBit, CharacterStateUtility.FromString(state)); } } }
public void RemoveState(int objId, string state) { EntityViewModel view = GetEntityViewById(objId); if (null != view && null != view.Entity) { EntityInfo entity = view.Entity; if (string.IsNullOrEmpty(state)) { //entity.StateFlag = 0; } else { entity.RemoveState((CharacterPropertyEnum)CharacterStateUtility.NameToState(state)); } } }
internal void RemoveState(int objId, string state) { EntityViewModel view = GetEntityViewById(objId); if (null != view && null != view.Entity) { EntityInfo entity = view.Entity; if (string.IsNullOrEmpty(state)) { entity.StateFlag = 0; } else { entity.SetStateFlag(Operate_Type.OT_RemoveBit, CharacterStateUtility.FromString(state)); } } }