public void addNpc(NpcStructure npc) { if (npcs == null) { npcs = new List <NpcStructure>(); } npcs.Add(npc); }
public void addNpc(NpcStructure npc) { if (npcs == null) { npcs = new List<NpcStructure>(); } npcs.Add(npc); }
public NpcStructure parseNpc() { NpcStructure npc = new NpcStructure(); nextTokenIfEquals(Token.TokenValue.NPC); if (currentTokenEquals(Token.TokenValue.STRING)) { npc.name = currentToken.stringValue; nextToken(); nextTokenIfEquals(Token.TokenValue.LBRACE); while (!currentTokenEquals(Token.TokenValue.RBRACE)) { npc.addLabel(parseLabelExpression()); } nextTokenIfEquals(Token.TokenValue.RBRACE); return npc; } return null; }
public static void addNpc(string npcName, NpcStructure npc) { npcs.Add(npcName, npc); }