Ejemplo n.º 1
0
        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));
                }
            }
        }