當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。