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


C# GenericReader.ReadDateTime方法代码示例

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


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

示例1: Deserialize

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

            m_RemovalTime = reader.ReadDateTime();
            TemporaryItemSystem.Verify(this);
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:7,代码来源:TempEventEthereal.cs

示例2: PlayerState

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

            int version = reader.ReadEncodedInt();

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

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

                        this.m_Leaving = reader.ReadDateTime();

                        break;
                    }
            }

            this.Attach();
        }
开发者ID:FreeReign,项目名称:forkuo,代码行数:30,代码来源:PlayerState.cs

示例3: Election

        public Election(GenericReader reader)
        {
            int version = reader.ReadEncodedInt();

            switch ( version )
            {
                case 0:
                    {
                        this.m_Faction = Faction.ReadReference(reader);

                        this.m_LastStateTime = reader.ReadDateTime();
                        this.m_State = (ElectionState)reader.ReadEncodedInt();

                        this.m_Candidates = new List<Candidate>();

                        int count = reader.ReadEncodedInt();

                        for (int i = 0; i < count; ++i)
                        {
                            Candidate cd = new Candidate(reader);

                            if (cd.Mobile != null)
                                this.m_Candidates.Add(cd);
                        }

                        break;
                    }
            }

            this.StartTimer();
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:31,代码来源:Election.cs

示例4: Deserialize

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

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

示例5: Deserialize

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

			int version = reader.ReadInt();

			decayTime = reader.ReadDateTime();
			mountedHead = reader.ReadItem() as Head;
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:9,代码来源:Headpost.cs

示例6: Deserialize

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

            int version = reader.ReadInt();

            m_LastTimeOpened = reader.ReadDateTime();
            m_CoffinSlave = reader.ReadItem();
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:9,代码来源:DiabloDungeonCoffin.cs

示例7: Deserialize

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

            var version = reader.ReadInt();

            Created = reader.ReadDateTime();
            Bounty = reader.ReadInt();
            Player = reader.ReadMobile<PlayerMobile>();
        }
开发者ID:jackuoll,项目名称:Pre-AOS-RunUO,代码行数:10,代码来源:BountiedHead.cs

示例8: TransactionInfo

        public TransactionInfo(GenericReader reader)
        {
            int version = reader.ReadInt();

            Price = reader.ReadDouble();
            Quantity = reader.ReadInt();
            Name = reader.ReadString();
            Buyer = reader.ReadBool();
            Date = reader.ReadDateTime();
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:10,代码来源:TransactionInfo.cs

示例9: Deserialize

			public static MLDoneQuestInfo Deserialize( GenericReader reader, int version )
			{
				MLQuest quest = MLQuestSystem.ReadQuestRef( reader );
				DateTime nextAvailable = reader.ReadDateTime();

				if ( quest == null || !quest.RecordCompletion )
					return null; // forget about this record

				return new MLDoneQuestInfo( quest, nextAvailable );
			}
开发者ID:jackuoll,项目名称:Pre-AOS-RunUO,代码行数:10,代码来源:MLQuestContext.cs

示例10: TownState

        public TownState( GenericReader reader )
        {
            int version = reader.ReadEncodedInt();

            switch ( version )
            {
                case 3:
                {
                    m_LastIncome = reader.ReadDateTime();

                    goto case 2;
                }
                case 2:
                {
                    m_Tax = reader.ReadEncodedInt();
                    m_LastTaxChange = reader.ReadDateTime();

                    goto case 1;
                }
                case 1:
                {
                    m_Silver = reader.ReadEncodedInt();

                    goto case 0;
                }
                case 0:
                {
                    m_Town = Town.ReadReference( reader );
                    m_Owner = Faction.ReadReference( reader );

                    m_Sheriff = reader.ReadMobile();
                    m_Finance = reader.ReadMobile();

                    m_Town.State = this;

                    break;
                }
            }
        }
开发者ID:justdanofficial,项目名称:khaeros,代码行数:39,代码来源:TownState.cs

示例11: 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:greeduomacro,项目名称:last-wish,代码行数:14,代码来源:Trophy.cs

示例12: Deserialize

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

            switch( version )
            {
                case 0:
                {
                    m_Author = reader.ReadMobile();
                    m_PostDate = reader.ReadDateTime();
                    m_Post = reader.ReadString();
                    break;
                }
            }
        }
开发者ID:greeduomacro,项目名称:last-wish,代码行数:15,代码来源:PostEntry.cs

示例13: FactionItem

        public FactionItem( GenericReader reader, Faction faction )
        {
            int version = reader.ReadEncodedInt();

            switch ( version )
            {
                case 0:
                    {
                        m_Item = reader.ReadItem();
                        m_Expiration = reader.ReadDateTime();
                        break;
                    }
            }

            m_Faction = faction;
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:16,代码来源:FactionItem.cs

示例14: Deserialize

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

            int version = reader.ReadEncodedInt();

            m_IsRewardItem = reader.ReadBool();
            m_Logs = reader.ReadInt();

            DateTime next = reader.ReadDateTime();

            if ( next < DateTime.Now )
                next = DateTime.Now;

            m_Timer = Timer.DelayCall( next - DateTime.Now, TimeSpan.FromDays( 1 ), new TimerCallback( GiveLogs ) );
        }
开发者ID:vexilar,项目名称:RunUO_Rebar,代码行数:16,代码来源:TreeStump.cs

示例15: RaffleEntry

        public RaffleEntry(GenericReader reader, int version)
        {
            switch ( version )
            {
                case 3: // HouseRaffleStone version changes
                case 2:
                case 1:
                case 0:
                    {
                        this.m_From = reader.ReadMobile();
                        this.m_Address = Utility.Intern(reader.ReadIPAddress());
                        this.m_Date = reader.ReadDateTime();

                        break;
                    }
            }
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:17,代码来源:HouseRaffleStone.cs


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