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