internal static NPCSpawnPoolTemplate GetOrCreateSpawnPoolTemplate(uint poolId) { NPCSpawnPoolTemplate spawnPoolTemplate; if (poolId == 0U) { spawnPoolTemplate = new NPCSpawnPoolTemplate(); NPCMgr.SpawnPoolTemplates.Add(spawnPoolTemplate.PoolId, spawnPoolTemplate); } else if (!NPCMgr.SpawnPoolTemplates.TryGetValue(poolId, out spawnPoolTemplate)) { SpawnPoolTemplateEntry poolTemplateEntry = SpawnMgr.GetSpawnPoolTemplateEntry(poolId); spawnPoolTemplate = poolTemplateEntry == null ? new NPCSpawnPoolTemplate() : new NPCSpawnPoolTemplate(poolTemplateEntry); NPCMgr.SpawnPoolTemplates.Add(spawnPoolTemplate.PoolId, spawnPoolTemplate); } return(spawnPoolTemplate); }
internal NPCSpawnPoolTemplate(SpawnPoolTemplateEntry entry) : base(entry) { }