public static FromString ( string name ) : CharacterState_Type | ||
name | string | |
리턴 | CharacterState_Type |
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)); } }
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)); } }
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); }
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)); } } }
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)); } } }