当前位置: 首页>>代码示例>>C#>>正文


C# GenericReader.ReadBool方法代码示例

本文整理汇总了C#中Server.GenericReader.ReadBool方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadBool方法的具体用法?C# GenericReader.ReadBool怎么用?C# GenericReader.ReadBool使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server.GenericReader的用法示例。


在下文中一共展示了GenericReader.ReadBool方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

		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();
			}
		}
开发者ID:jsrn,项目名称:MidnightWatchServer,代码行数:28,代码来源:Plank.cs

示例2: DistillationContext

		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();
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:10,代码来源:DistillationContext.cs

示例3: Load

        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();
        }
开发者ID:Jascen,项目名称:UOSmart,代码行数:12,代码来源:Notification.cs

示例4: Deserialize

 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;
 }
开发者ID:greeduomacro,项目名称:DimensionsNewAge,代码行数:13,代码来源:BaseSwitch.cs

示例5: Deserialize

		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;
			}
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:16,代码来源:SystemOpts.cs

示例6: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();

			m_IsDigging = reader.ReadBool();
		}
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:PumpkinheadShovel.cs

示例7: Deserialize

        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();
            }
        }
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:16,代码来源:CyclingDyetub.cs

示例8: Deserialize

		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);
			int version = reader.ReadInt();
			m_Charged = reader.ReadBool();
			m_LastRecharged = reader.ReadDateTime();
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:7,代码来源:MysticKeys.cs

示例9: Deserialize

		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;
                }
            }
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:27,代码来源:WinnerPaper.cs

示例10: Deserialize

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadEncodedInt();
            mActive = reader.ReadBool();
        }
开发者ID:zerodowned,项目名称:My-Stuff,代码行数:7,代码来源:ShameAltarAddon.cs

示例11: Deserialize

		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;
				}
			}
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:27,代码来源:BaseAxe.cs

示例12: ExtendedDeserialize

		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;
				}
			}
		}
开发者ID:ITLongwell,项目名称:aedilis2server,代码行数:33,代码来源:AedilisPlayerMobile.cs

示例13: Deserialize

        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;
                    }
            }
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:25,代码来源:DecayedCorpse.cs

示例14: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadEncodedInt();

			m_IsRewardItem = reader.ReadBool();
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:DecoAnkhAddon.cs

示例15: Deserialize

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

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

            m_Active = reader.ReadBool();
        }
开发者ID:BackupTheBerlios,项目名称:sunuo-svn,代码行数:8,代码来源:MilitiaCanoneer.cs


注:本文中的Server.GenericReader.ReadBool方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。