public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 0: { m_Boat = reader.ReadItem() as BaseBoat; m_Side = (PlankSide) reader.ReadInt(); m_Locked = reader.ReadBool(); m_KeyValue = reader.ReadUInt(); if ( m_Boat == null ) Delete(); break; } } if ( IsOpen ) { m_CloseTimer = new CloseTimer( this ); m_CloseTimer.Start(); } }
public DistillationContext(GenericReader reader) { int version = reader.ReadInt(); m_LastGroup = (Group)reader.ReadInt(); m_LastLiquor = (Liquor)reader.ReadInt(); m_MakeStrong = reader.ReadBool(); m_Mark = reader.ReadBool(); m_Label = reader.ReadString(); }
public void Load(GenericReader reader) { int version = reader.ReadInt(); c_Text = reader.ReadString(); c_Name = reader.ReadString(); c_Gump = reader.ReadBool(); c_AntiMacro = reader.ReadBool(); c_Recur = reader.ReadTimeSpan(); StartNotify(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); m_TurnOn = reader.ReadInt(); m_TurnOff = reader.ReadInt(); m_LocMessageA = reader.ReadInt(); m_LocMessageB = reader.ReadInt(); m_Working = reader.ReadBool(); m_Used = reader.ReadBool(); this.m_Used = false; this.ItemID = this.m_TurnOff; }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadEncodedInt(); mActive = reader.ReadBool(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadEncodedInt(); m_IsRewardItem = reader.ReadBool(); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_Charged = reader.ReadBool(); m_LastRecharged = reader.ReadDateTime(); }
public override void Deserialize(GenericReader reader) { base.Deserialize (reader); int version = reader.ReadInt(); switch (version) { case 1: { m_GaveUp = reader.ReadBool(); goto case 0; } case 0: { m_Winner = reader.ReadString(); m_Looser = reader.ReadString(); m_GameEnd = reader.ReadDateTime(); m_GameTime = reader.ReadTimeSpan(); m_WinnerTime = reader.ReadTimeSpan(); m_LooserTime = reader.ReadTimeSpan(); m_WinnerScore = reader.ReadInt(); m_LooserScore = reader.ReadInt(); break; } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); m_IsDigging = reader.ReadBool(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadEncodedInt(); m_HueDelay = reader.ReadDouble(); m_HueStart = reader.ReadInt(); m_HueStop = reader.ReadInt(); m_IsCycling = reader.ReadBool(); m_HasCost = reader.ReadBool(); if ( m_IsCycling ) { DoHueTimer(); } }
public void ExtendedDeserialize( GenericReader reader, int parentVerison ) { int version = reader.ReadInt(); switch (version) { case 3: { m_PopUpToggle = reader.ReadBool(); goto case 2; } case 2: { Percent = reader.ReadDouble(); m_LevelTitle = reader.ReadString(); m_PlayerLevel = reader.ReadInt(); goto case 1; } case 1: { m_Settings = new MobileSettings(this); m_Settings.Deserialize(reader); goto case 0; } case 0: { m_TravelTickets = reader.ReadInt(); break; } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 0: { BeginDecay( m_DefaultDecayTime ); break; } case 1: { if ( reader.ReadBool() ) { BeginDecay( reader.ReadDeltaTime() - DateTime.Now ); } break; } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 2: { m_ShowUsesRemaining = reader.ReadBool(); goto case 1; } case 1: { m_UsesRemaining = reader.ReadInt(); goto case 0; } case 0: { if ( m_UsesRemaining < 1 ) m_UsesRemaining = 150; break; } } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.GetVersion(); switch (version) { case 1: NameSharing = reader.ReadBool(); goto case 0; case 0: IndexOnStart = reader.ReadBool(); break; } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); /*int version = */reader.ReadInt(); m_Active = reader.ReadBool(); }
public override void Deserialize(GenericReader reader) { base.Deserialize( reader ); int version = reader.ReadInt(); m_IsRewardItem = reader.ReadBool(); if ( version == 0 && Hue == 0 ) Hue = 0x2B0; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadEncodedInt(); if (reader.ReadBool()) m_Owner = reader.ReadMobile(); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: { m_UseRandomLightOutage = reader.ReadBool(); m_UseAutoLighting = reader.ReadBool(); break; } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); /*int version = */reader.ReadInt(); m_Organo = reader.ReadItem(); Cortada = reader.ReadBool(); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); GooInBottle = reader.ReadBool(); gooPet = reader.ReadMobile(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); if ( version == 0 ) reader.ReadBool(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); m_ExplosionRange = reader.ReadInt(); m_InstantExplosion = reader.ReadBool(); m_FuseTimer = reader.ReadInt(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); m_Wanderer = reader.ReadMobile() as WandererOfTheVoid; m_CanSummon = reader.ReadBool(); }
public override void Deserialize(GenericReader reader) { int ver = reader.ReadInt(); if (ver == 1) { m_IsFlipped = reader.ReadBool(); m_IsEmpty = reader.ReadBool(); m_NormalItemIDs = new int[2]; m_NormalItemIDs[0] = reader.ReadInt(); m_NormalItemIDs[1] = reader.ReadInt(); m_EmptyItemIDs = new int[2]; m_EmptyItemIDs[0] = reader.ReadInt(); m_EmptyItemIDs[1] = reader.ReadInt(); m_Owner = reader.ReadMobile(); m_Item = (BaseWeapon)reader.ReadItem(); } base.Deserialize(reader); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); m_TimeLeft = reader.ReadInt(); m_ShowTimeLeft = reader.ReadBool(); m_Running = reader.ReadBool(); if ( m_Running ) { if ( m_TimeLeft <= 0 ) Delete(); else { m_Timer = new SelfDestructTimer( this ); } } }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 1: m_IsRewardItem = reader.ReadBool(); break; } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadEncodedInt(); m_Captured = reader.ReadBool(); m_CapturedCaptain = reader.ReadMobile(); Timer.DelayCall(TimeSpan.FromSeconds(10), new TimerCallback(ValidateCaught)); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); /*int version = */reader.ReadEncodedInt(); m_Active = reader.ReadBool(); m_Word = reader.ReadString(); m_Destination = reader.ReadRect2D(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); m_InactiveItemID = reader.ReadInt(); m_ActiveItemID = reader.ReadInt(); m_PlayersCanToggle = reader.ReadBool(); }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 0: { m_GameTimeMax = reader.ReadTimeSpan(); m_AgeMax = reader.ReadTimeSpan(); m_UseGameTime = reader.ReadBool(); m_UseAge = reader.ReadBool(); break; } } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); //Version 0 if (version >= 0) { m_Listed = reader.ReadBool(); m_Expiration = reader.ReadDateTime(); m_PointValue = reader.ReadInt(); m_SocietiesGroupType = (SocietiesGroupType)reader.ReadInt(); m_JobType = (JobType)reader.ReadInt(); m_PrimaryTypeName = reader.ReadString(); string primaryType = reader.ReadString(); if (primaryType == "null") { m_PrimaryType = null; } else { m_PrimaryType = Type.GetType(primaryType); } m_SecondaryTypeName = reader.ReadString(); string secondaryType = reader.ReadString(); if (secondaryType == "null") { m_SecondaryType = null; } else { m_SecondaryType = Type.GetType(secondaryType); } m_TargetNumber = reader.ReadDouble(); m_TurnInRequirementAmount = reader.ReadDouble(); m_CraftResourceRequired = (CraftResource)reader.ReadInt(); m_PrimaryJobModifier = (JobModifierType)reader.ReadInt(); m_SecondaryJobModifier = (JobModifierType)reader.ReadInt(); m_IconItemId = reader.ReadInt(); m_IconHue = reader.ReadInt(); m_IconOffsetX = reader.ReadInt(); m_IconOffsetY = reader.ReadInt(); string destionationMobile = reader.ReadString(); if (destionationMobile == "null") { m_DestinationMobile = null; } else { m_DestinationMobile = Type.GetType(destionationMobile); } m_DestinationMobileName = reader.ReadString(); m_DestinationTown = reader.ReadItem() as Town; int playersCompletedCount = reader.ReadInt(); for (int a = 0; a < playersCompletedCount; a++) { m_PlayersCompleted.Add(reader.ReadMobile() as PlayerMobile); } } //----- Societies.m_SocietyJobs.Add(this); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); //Version 0 if (version >= 0) { m_LastEventTime = reader.ReadDateTime(); m_Player = reader.ReadMobile() as PlayerMobile; m_ArenaMatch = (ArenaMatch)reader.ReadItem(); m_ReadyToggled = reader.ReadBool(); m_FightStatus = (FightStatusType)reader.ReadInt(); m_LowestHealth = reader.ReadInt(); m_TimeAlive = reader.ReadTimeSpan(); m_DamageDealt = reader.ReadInt(); m_DamageReceived = reader.ReadInt(); int spellUsages = reader.ReadInt(); for (int a = 0; a < spellUsages; a++) { string typeText = reader.ReadString(); Type spellType = null; if (typeText != "null") { spellType = Type.GetType(typeText); } int usages = reader.ReadInt(); if (spellType != null) { m_SpellUsages.Add(new ArenaSpellUsage(spellType, usages)); } } int itemUsages = reader.ReadInt(); for (int a = 0; a < itemUsages; a++) { string typeText = reader.ReadString(); Type itemType = null; if (typeText != "null") { itemType = Type.GetType(typeText); } int usages = reader.ReadInt(); if (itemType != null) { m_ItemUsages.Add(new ArenaItemUsage(itemType, usages)); } } } //---- //Force On System Start m_ReadyToggled = false; if (m_ArenaMatch == null) { Delete(); } }