public MiniChampPlatform(MiniChampSpawn spawn) { m_MiniSpawn = spawn; for (int x = -2; x <= 2; ++x) { for (int y = -2; y <= 2; ++y) { AddComponent(0x750, x, y, -5); } } for (int x = -1; x <= 1; ++x) { for (int y = -1; y <= 1; ++y) { AddComponent(0x750, x, y, 0); } } for (int i = -1; i <= 1; ++i) { AddComponent(0x751, i, 2, 0); AddComponent(0x752, 2, i, 0); AddComponent(0x753, i, -2, 0); AddComponent(0x754, -2, i, 0); } AddComponent(0x759, -2, -2, 0); AddComponent(0x75A, 2, 2, 0); AddComponent(0x75B, -2, 2, 0); AddComponent(0x75C, 2, -2, 0); }
private MiniChampSpawn CreateAltar(SpawnRecord r, Map m, bool restartdisable) { MiniChampSpawn cs = new MiniChampSpawn(); Point3D loc = new Point3D(r.x, r.y, r.z); if (r.type == 0xff) { cs.RandomizeType = true; switch (Utility.Random(5)) { case 0: cs.Type = MiniChampType.SecretGarden; break; case 1: cs.Type = MiniChampType.StygianDragonLair; break; case 2: cs.Type = MiniChampType.CrimsonVeins; break; case 3: cs.Type = MiniChampType.AbyssalLair; break; case 4: cs.Type = MiniChampType.FireTemple; break; } } else { cs.RandomizeType = false; cs.Type = (MiniChampType)r.type; } cs.MoveToWorld(loc, m); return(cs); }
private void Generate() { int i = 0; for (i = 0; i < m_Dungeons.Length; i++) { MiniChampSpawn cs = CreateAltar(m_Dungeons[i], Map.TerMur, true); m_AllSpawn.Add(cs); m_DungeonsSpawn.Add(cs); } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: { m_MiniSpawn = reader.ReadItem() as MiniChampSpawn; if (m_MiniSpawn == null) { Delete(); } break; } } }
public MiniRestartTimer(MiniChampSpawn spawn, TimeSpan delay) : base(delay) { m_MiniSpawn = spawn; Priority = TimerPriority.FiveSeconds; }
public MiniSliceTimer(MiniChampSpawn spawn) : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0)) { m_MiniSpawn = spawn; Priority = TimerPriority.OneSecond; }
public MiniChampAltar(MiniChampSpawn spawn) { m_MiniSpawn = spawn; }
public MiniChampSpawnRegion(MiniChampSpawn spawn) : base(null, spawn.Map, Region.Find(spawn.Location, spawn.Map), spawn.SpawnArea) { m_Spawn = spawn; }