public void AddNPC(NPCDict npc) { if (NPCInLocation == null) { NPCInLocation = new List <NPCDict>(); } NPCInLocation.Add(npc); }
private void NPCsLoad(JSONNode node) { NPCsDict = new Dictionary <int, NPCDict>(); foreach (JSONNode doc in node.AsArray) { NPCDict npc = new NPCDict(doc); NPCsDict[npc.Id] = npc; LocationsDict[npc.LocationId].AddNPC(npc); } }