public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: { m_Stage1Type = (eStage1Type)reader.ReadInt(); m_Stage2Type = (eStage2Type)reader.ReadInt(); m_Stage3Type = (eStage3Type)reader.ReadInt(); m_Stage4Type = (eStage4Type)reader.ReadInt(); m_ChampionType = (eChampionType)reader.ReadInt(); m_Stage1Count = reader.ReadEncodedInt(); m_Stage2Count = reader.ReadEncodedInt(); m_Stage3Count = reader.ReadEncodedInt(); m_Stage4Count = reader.ReadEncodedInt(); m_CurrentStage = reader.ReadEncodedInt(); m_RewardsEnabled = reader.ReadBool(); m_ArtifactChance = reader.ReadEncodedInt(); m_BlessDeedChance = reader.ReadEncodedInt(); m_MinSpawnZ = reader.ReadEncodedInt(); m_MaxSpawnZ = reader.ReadEncodedInt(); m_Enabled = reader.ReadBool(); m_Broadcast = reader.ReadBool(); m_Top = reader.ReadPoint3D(); m_Bottom = reader.ReadPoint3D(); m_RegionName = reader.ReadString(); m_Spawned = reader.ReadStrongMobileList <BaseCreature>(); break; } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch( version ) { case 0: { m_Stage1Type = (eStage1Type)reader.ReadInt(); m_Stage2Type = (eStage2Type)reader.ReadInt(); m_Stage3Type = (eStage3Type)reader.ReadInt(); m_Stage4Type = (eStage4Type)reader.ReadInt(); m_ChampionType = (eChampionType)reader.ReadInt(); m_Stage1Count = reader.ReadEncodedInt(); m_Stage2Count = reader.ReadEncodedInt(); m_Stage3Count = reader.ReadEncodedInt(); m_Stage4Count = reader.ReadEncodedInt(); m_CurrentStage = reader.ReadEncodedInt(); m_RewardsEnabled = reader.ReadBool(); m_ArtifactChance = reader.ReadEncodedInt(); m_BlessDeedChance = reader.ReadEncodedInt(); m_MinSpawnZ = reader.ReadEncodedInt(); m_MaxSpawnZ = reader.ReadEncodedInt(); m_Enabled = reader.ReadBool(); m_Broadcast = reader.ReadBool(); m_Top = reader.ReadPoint3D(); m_Bottom = reader.ReadPoint3D(); m_RegionName = reader.ReadString(); m_Spawned = reader.ReadStrongMobileList<BaseCreature>(); break; } } }