本文整理汇总了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();
}
示例2: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Charged = reader.ReadBool();
m_LastRecharged = reader.ReadDateTime();
}
示例3: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt(); // version
m_EndDate = reader.ReadDateTime();
}
示例4: Deserialize
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
// version 0
m_DataValue = reader.ReadDateTime();
}
示例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();
}
示例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 ) );
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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 ) );
}
示例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();
}
}
示例13: Deserialize
private void Deserialize(GenericReader reader)
{
int version = reader.ReadInt();
switch (version)
{
case 0:
{
_Mobile = reader.ReadMobile();
_Time = reader.ReadDateTime();
break;
}
}
}
示例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;
}
示例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;
}
}
}