本文整理汇总了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);
}
示例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();
}
示例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();
}
示例4: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
// version 0
m_DataValue = reader.ReadDateTime();
}
示例5: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
decayTime = reader.ReadDateTime();
mountedHead = reader.ReadItem() as Head;
}
示例6: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_LastTimeOpened = reader.ReadDateTime();
m_CoffinSlave = reader.ReadItem();
}
示例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>();
}
示例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();
}
示例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 );
}
示例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;
}
}
}
示例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;
}
示例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;
}
}
}
示例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;
}
示例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 ) );
}
示例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;
}
}
}