public void FinalizeDataHolder() { if (!Asda2PortalMgr.Portals.ContainsKey((MapId)FromMap)) { Asda2PortalMgr.Portals.Add((MapId)FromMap, new List <GOSpawnPoolTemplate>()); } var pos = new Vector3(FromX + 1000 * FromMap, FromY + 1000 * FromMap); var goEntry = new GOPortalEntry { GOCreator = GoCreator, GOId = GOEntryId.Portal }; var goTempl = new GOSpawnEntry(goEntry, GameObjectState.Enabled, (MapId)FromMap, ref pos, 0, 1, new float[] { 0, 0, 0 }); var templ = new GOSpawnPoolTemplate(goTempl, 1); Asda2PortalMgr.Portals[(MapId)FromMap].Add(templ); }
public void FinalizeDataHolder() { if (!Asda2PortalMgr.Portals.ContainsKey((MapId)FromMap)) { Asda2PortalMgr.Portals.Add((MapId)FromMap, new List <GOSpawnPoolTemplate>()); } Vector3 pos = new Vector3(FromX + 1000 * FromMap, FromY + 1000 * FromMap); GOPortalEntry goPortalEntry = new GOPortalEntry(); goPortalEntry.GOCreator = GoCreator; goPortalEntry.GOId = GOEntryId.Portal; GOSpawnPoolTemplate spawnPoolTemplate = new GOSpawnPoolTemplate( new GOSpawnEntry(goPortalEntry, GameObjectState.Enabled, (MapId)FromMap, ref pos, 0.0f, 1f, new float[3], 600), 1); Asda2PortalMgr.Portals[(MapId)FromMap].Add(spawnPoolTemplate); }