예제 #1
0
 public IJsonObject GetJsonObject()
 {
     var npc = new JsonNPC();
     npc.State = state;
     npc.Avatar = (JsonPawn)avatar.GetJsonObject();
     return npc;
 }
예제 #2
0
        public void Initialize(int spookPrototypeIndex, GameLevel level, JsonNPC jsonNPC)
        {
            BaseInitialize(spookPrototypeIndex, level);
            avatar.Initialize(this, jsonNPC.Avatar);
            state = jsonNPC.State;

            NextAction();
        }