public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: { m_Platform = reader.ReadItem() as PeerlessPlatform; m_Key = reader.ReadItem(); if (m_Platform == null) { Delete(); } if (m_Key != null) { m_Key.Delete(); m_Key = null; } break; } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 0: { m_Platform = reader.ReadItem() as PeerlessPlatform; m_Key = reader.ReadItem(); if ( m_Platform == null ) Delete(); if ( m_Key != null ) { m_Key.Delete(); m_Key = null; } break; } } }
public PeerlessKeyBrazier(PeerlessPlatform platform) : base(0x19BB) { Hue = 0x15F; Light = LightType.Circle300; m_Platform = platform; }
public PeerlessKeyBrazier( PeerlessPlatform platform ) : base(0x19BB) { Hue = 0x15F; Light = LightType.Circle300; m_Platform = platform; }
public PeerlessInstance(PeerlessPlatform platform, Map map, Item light, Point3D entranceLoc, Point3D bossSpawnLoc, Rectangle2D regionBounds) { m_Owner = platform; m_Map = map; m_Light = light; m_EntranceLocation = entranceLoc; m_BossSpawnLocation = bossSpawnLoc; m_RegionBounds = regionBounds; Initialize(); }
public PeerlessInstance( PeerlessPlatform platform, Map map, Item light, Point3D entranceLoc, Point3D bossSpawnLoc, Rectangle2D regionBounds ) { m_Owner = platform; m_Map = map; m_Light = light; m_EntranceLocation = entranceLoc; m_BossSpawnLocation = bossSpawnLoc; m_RegionBounds = regionBounds; Initialize(); }
public PeerlessInstance( GenericReader reader ) { m_Owner = reader.ReadItem<PeerlessPlatform>(); m_Light = reader.ReadItem(); m_Map = reader.ReadMap(); m_EntranceLocation = reader.ReadPoint3D(); m_BossSpawnLocation = reader.ReadPoint3D(); m_RegionBounds = reader.ReadRect2D(); Mobile boss = reader.ReadMobile(); if ( boss != null ) boss.Delete(); Initialize(); }
public PeerlessInstance(GenericReader reader) { m_Owner = reader.ReadItem <PeerlessPlatform>(); m_Light = reader.ReadItem(); m_Map = reader.ReadMap(); m_EntranceLocation = reader.ReadPoint3D(); m_BossSpawnLocation = reader.ReadPoint3D(); m_RegionBounds = reader.ReadRect2D(); Mobile boss = reader.ReadMobile(); if (boss != null) { boss.Delete(); } Initialize(); }