コード例 #1
2
ファイル: Plank.cs プロジェクト: jsrn/MidnightWatchServer
		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();
			}
		}
コード例 #2
0
		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();
		}
コード例 #3
0
ファイル: Notification.cs プロジェクト: Jascen/UOSmart
        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();
        }
コード例 #4
0
 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;
 }
コード例 #5
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadEncodedInt();
            mActive = reader.ReadBool();
        }
コード例 #6
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadEncodedInt();

			m_IsRewardItem = reader.ReadBool();
		}
コード例 #7
0
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);
			int version = reader.ReadInt();
			m_Charged = reader.ReadBool();
			m_LastRecharged = reader.ReadDateTime();
		}
コード例 #8
0
		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;
                }
            }
		}
コード例 #9
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();

			m_IsDigging = reader.ReadBool();
		}
コード例 #10
0
        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();
            }
        }
コード例 #11
0
		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;
				}
			}
		}
コード例 #12
0
ファイル: DecayedCorpse.cs プロジェクト: Ravenwolfe/xrunuo
        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;
                    }
            }
        }
コード例 #13
0
		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;
				}
			}
		}
コード例 #14
0
ファイル: SystemOpts.cs プロジェクト: jasegiffin/JustUO
		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;
			}
		}
コード例 #15
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            /*int version = */reader.ReadInt();

            m_Active = reader.ReadBool();
        }
コード例 #16
0
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
            m_IsRewardItem = reader.ReadBool();
			if ( version == 0 && Hue == 0 )
				Hue = 0x2B0;
		}
コード例 #17
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadEncodedInt();
            if (reader.ReadBool()) m_Owner = reader.ReadMobile();

        }
コード例 #18
0
        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;
                    }
            }
        }
コード例 #19
0
ファイル: Plague_Venas.cs プロジェクト: xrunuo/xrunuo
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			/*int version = */reader.ReadInt();
			m_Organo = reader.ReadItem();
			Cortada = reader.ReadBool();
		}
コード例 #20
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            GooInBottle = reader.ReadBool();
            gooPet = reader.ReadMobile();
        }
コード例 #21
0
ファイル: NovoBleue.cs プロジェクト: Ravenwolfe/xrunuo
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            if ( version == 0 )
                reader.ReadBool();
        }
コード例 #22
0
ファイル: BombPotion.cs プロジェクト: justdanofficial/khaeros
        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();
        }
コード例 #23
0
ファイル: PuzzleBox.cs プロジェクト: evildude807/kaltar
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            m_Wanderer = reader.ReadMobile() as WandererOfTheVoid;
            m_CanSummon = reader.ReadBool();
        }
コード例 #24
0
		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);
		}
コード例 #25
0
		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 );
				}
			}
		}
コード例 #26
0
		public override void	Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();

			switch ( version )
			{
				case 1: m_IsRewardItem = reader.ReadBool(); break;
			}
		}
コード例 #27
0
        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));
        }
コード例 #28
0
        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();
        }
コード例 #29
0
ファイル: ToggleItem.cs プロジェクト: Godkong/Origins
        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();
        }
コード例 #30
0
        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;
                }
            }
        }
コード例 #31
0
        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);
        }
コード例 #32
0
        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();
            }
        }