public NpcGroup(MmoWorld world, NpcGroupData npcGroupData) { this.npcGroupData = npcGroupData; this.npcCounter = 0; this.lastSpawnTime = 0f; this.world = world; }
private void InitializeNpcGroups(IRes resource) { this.npcGroups = new Dictionary <string, NpcGroup>(); foreach (string npcGroupId in this.Zone.NpcGroups) { NpcGroupData npcGroupData = resource.NpcGroups.GroupData(npcGroupId); if (npcGroupData == null) { continue; } NpcGroup npcGroup = new NpcGroup(this, npcGroupData); this.npcGroups.Add(npcGroupData.Id, npcGroup); } }