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


C# GenericReader.ReadDateTime方法代码示例

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


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

示例1: Deserialize

 public override void Deserialize(GenericReader reader)
 {
     base.Deserialize(reader);
     int version = reader.ReadInt();
     m_CaughtBy = reader.ReadMobile();
     m_DateCaught = reader.ReadDateTime();
 }
开发者ID:Crome696,项目名称:ServUO,代码行数:7,代码来源:RareFish.cs

示例2: 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

示例3: Deserialize

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

			int version = reader.ReadEncodedInt(); // version

			m_EndDate = reader.ReadDateTime();
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:8,代码来源:TrickOrTreatBag.cs

示例4: Deserialize

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

			int version = reader.ReadInt();
			// version 0
			m_DataValue = reader.ReadDateTime();
		}
开发者ID:Godkong,项目名称:RunUO,代码行数:8,代码来源:XmlQuestAttachment.cs

示例5: NewMaginciaMessage

        public NewMaginciaMessage(GenericReader reader)
        {
            int v = reader.ReadInt();

            m_Title = TextDefinition.Deserialize(reader);
            m_Body = TextDefinition.Deserialize(reader);
            m_Created = reader.ReadDateTime();
            m_Args = reader.ReadString();
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:9,代码来源:NewMaginciaMessage.cs

示例6: Deserialize

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

            m_LifeSpan = reader.ReadTimeSpan();
            m_CreationTime = reader.ReadDateTime();

            m_Timer = Timer.DelayCall( TimeSpan.FromSeconds( 5 ), TimeSpan.FromSeconds( 5 ), new TimerCallback( CheckExpiry ) );
        }
开发者ID:nathanvy,项目名称:runuo,代码行数:10,代码来源:TransientItem.cs

示例7: PlayerState

        public PlayerState( GenericReader reader, Faction faction, List<PlayerState> owner )
        {
            m_Faction = faction;
            m_Owner = owner;

            int version = reader.ReadEncodedInt();

            switch ( version )
            {
                case 3:
                {
                    m_JoinDate = reader.ReadDateTime();
                    goto case 2;
                }
                case 2:
                {
                    m_LastKill = reader.ReadDateTime();
                    goto case 1;
                }
                case 1:
                {
                    m_IsActive = reader.ReadBool();
                    m_LastHonorTime = reader.ReadDateTime();
                    goto case 0;
                }
                case 0:
                {
                    m_Mobile = reader.ReadMobile();

                    m_KillPoints = reader.ReadEncodedInt();
                    m_MerchantTitle = (MerchantTitle)reader.ReadEncodedInt();

                    m_Leaving = reader.ReadDateTime();

                    if ( version < 3 )
                        m_JoinDate = DateTime.Now;

                    break;
                }
            }

            Attach();
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:43,代码来源:PlayerState.cs

示例8: HuntingKillEntry

		public HuntingKillEntry(GenericReader reader)
		{
			int v = reader.ReadInt();
			
			m_Owner = reader.ReadMobile();
			m_Measurement = reader.ReadInt();
			m_DateKilled = reader.ReadDateTime();
			m_KillIndex = reader.ReadInt();
			m_Location = reader.ReadString();
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:10,代码来源:KillEntry.cs

示例9: SkillGainMod

		public SkillGainMod( PlayerMobile owner, GenericReader reader )
		{
			int version = reader.ReadEncodedInt();

			m_Owner = owner;
			m_Name = reader.ReadString();
			m_Skill = (SkillName)reader.ReadInt();
			m_Bonus = reader.ReadDouble();
			m_Duration = reader.ReadTimeSpan();
			m_Added = reader.ReadDateTime();
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:11,代码来源:SkillGainMod.cs

示例10: Deserialize

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

            int version = reader.ReadInt();

            m_Summoned = reader.ReadMobile();
            m_ManaCost = reader.ReadInt();
            m_CoolDown = reader.ReadTimeSpan();
            m_NextUseAllowed = reader.ReadDateTime();
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:11,代码来源:XmlSpiritSummoning.cs

示例11: Deserialize

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

			int version = reader.ReadInt();
			DecayStarted = reader.ReadDateTime();
			//reader.ReadTimeSpan();

			if ( DecayStarted - DecayDelay < DateTime.Now )
				m_DeleteTimer = Timer.DelayCall( TimeSpan.Zero, new TimerCallback( Delete ) );
			else
				m_DeleteTimer = Timer.DelayCall( DecayDelay - (DateTime.Now - DecayStarted), new TimerCallback( Delete ) );
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:13,代码来源:BaseBodyPart.cs

示例12: Deserialize

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
			b_switchon = reader.ReadBool();
			t_autotime = reader.ReadTimeSpan();
			t_RestartTime = reader.ReadDateTime();
			if (b_switchon)
			{
				I_Auto_Restarter tmr = new I_Auto_Restarter(this);
				tmr.Start();
			}
		}
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:13,代码来源:AutoRestarterItem.cs

示例13: Deserialize

		private void Deserialize(GenericReader reader)
		{
			int version = reader.ReadInt();

			switch (version)
			{
				case 0:
					{
						_Mobile = reader.ReadMobile();
						_Time = reader.ReadDateTime();
						break;
					}
			}
		}
开发者ID:zerodowned,项目名称:JustUO-merged-with-EC-Support,代码行数:14,代码来源:LastEditedBy.cs

示例14: Deserialize

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

			int version = reader.ReadInt();

			m_Title = reader.ReadString();
			m_Rank = (TrophyRank) reader.ReadInt();
			m_Owner = reader.ReadMobile();
			m_Date = reader.ReadDateTime();

			if ( version == 0 )
				LootType = LootType.Blessed;
		}
开发者ID:zerodowned,项目名称:kote-elemental,代码行数:14,代码来源:Trophy.cs

示例15: RaffleEntry

		public RaffleEntry( GenericReader reader, int version )
		{
			switch ( version )
			{
				case 0:
				{
					m_From = reader.ReadMobile();
					m_Address = Utility.Intern( reader.ReadIPAddress() );
					m_Date = reader.ReadDateTime();

					break;
				}
			}
		}
开发者ID:suiy187,项目名称:runuocustom,代码行数:14,代码来源:HouseRaffleStone.cs


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