本文整理汇总了C#中GenericWriter.WriteDeltaTime方法的典型用法代码示例。如果您正苦于以下问题:C# GenericWriter.WriteDeltaTime方法的具体用法?C# GenericWriter.WriteDeltaTime怎么用?C# GenericWriter.WriteDeltaTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericWriter
的用法示例。
在下文中一共展示了GenericWriter.WriteDeltaTime方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0);
writer.WriteDeltaTime(m_DecayTime);
}
示例2: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 );
writer.WriteDeltaTime( m_NextWoolTime );
}
示例3: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
writer.WriteDeltaTime(this.m_End);
}
示例4: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 0 ); // version
writer.Write( m_Decays );
if ( m_Decays )
writer.WriteDeltaTime( m_DecayTime );
}
示例5: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)1); // version
writer.Write(this.m_DecayTimer != null);
if (this.m_DecayTimer != null)
writer.WriteDeltaTime(this.m_DecayTime);
}
示例6: Serialize
public void Serialize(GenericWriter writer)
{
writer.WriteEncodedInt(0); // version
writer.Write(Owner);
writer.Write(VendorName);
writer.Write(ShopName);
writer.Write(Items, true);
writer.Write(Currency);
writer.WriteDeltaTime(ExpireTime);
}
示例7: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(1); // version
writer.Write(m_Caster);
writer.WriteDeltaTime(m_End);
}
示例8: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)12); // version
if (this.m_RestoreEquip == null)
{
writer.Write(false);
}
else
{
writer.Write(true);
writer.Write(this.m_RestoreEquip);
}
writer.Write((int)this.m_Flags);
writer.WriteDeltaTime(this.m_TimeOfDeath);
List<KeyValuePair<Item, Point3D>> list = (this.m_RestoreTable == null ? null : new List<KeyValuePair<Item, Point3D>>(this.m_RestoreTable));
int count = (list == null ? 0 : list.Count);
writer.Write(count);
for (int i = 0; i < count; ++i)
{
KeyValuePair<Item, Point3D> kvp = list[i];
Item item = kvp.Key;
Point3D loc = kvp.Value;
writer.Write(item);
if (item.Location == loc)
{
writer.Write(false);
}
else
{
writer.Write(true);
writer.Write(loc);
}
}
writer.Write(this.m_DecayTimer != null);
if (this.m_DecayTimer != null)
writer.WriteDeltaTime(this.m_DecayTime);
writer.Write(this.m_Looters);
writer.Write(this.m_Killer);
writer.Write(this.m_Aggressors);
writer.Write(this.m_Owner);
writer.Write((string)this.m_CorpseName);
writer.Write((int)this.m_AccessLevel);
writer.Write((Guild)this.m_Guild);
writer.Write((int)this.m_Kills);
writer.Write(this.m_EquipItems);
}
示例9: Serialize
//.........这里部分代码省略.........
else
{
writer.Write(m_CollectionTitles.Count);
for (int i = 0; i < m_CollectionTitles.Count; i++)
{
QuestWriter.Object(writer, m_CollectionTitles[i]);
}
}
writer.Write(m_SelectedTitle);
#endregion
// Version 28
writer.Write(m_PeacedUntil);
writer.Write(m_AnkhNextUse);
writer.Write(m_AutoStabled, true);
if (m_AcquiredRecipes == null)
{
writer.Write(0);
}
else
{
writer.Write(m_AcquiredRecipes.Count);
foreach (var kvp in m_AcquiredRecipes)
{
writer.Write(kvp.Key);
writer.Write(kvp.Value);
}
}
writer.WriteDeltaTime(m_LastHonorLoss);
ChampionTitleInfo.Serialize(writer, m_ChampionTitles);
writer.Write(m_LastValorLoss);
writer.WriteEncodedInt(m_ToTItemsTurnedIn);
writer.Write(m_ToTTotalMonsterFame); //This ain't going to be a small #.
writer.WriteEncodedInt(m_AllianceMessageHue);
writer.WriteEncodedInt(m_GuildMessageHue);
writer.WriteEncodedInt(m_GuildRank.Rank);
writer.Write(m_LastOnline);
writer.WriteEncodedInt((int)m_SolenFriendship);
QuestSerializer.Serialize(m_Quest, writer);
if (m_DoneQuests == null)
{
writer.WriteEncodedInt(0);
}
else
{
writer.WriteEncodedInt(m_DoneQuests.Count);
for (int i = 0; i < m_DoneQuests.Count; ++i)
{
QuestRestartInfo restartInfo = m_DoneQuests[i];
QuestSerializer.Write(restartInfo.QuestType, QuestSystem.QuestTypes, writer);
writer.Write(restartInfo.RestartTime);
}
示例10: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
EDI dest = GetDestination();
writer.Write(dest != null);
if (dest != null)
{
writer.Write(dest.Name);
}
writer.Write(m_DeleteTimer != null);
if (m_DeleteTimer != null)
{
writer.WriteDeltaTime(m_DeleteTime);
}
}
示例11: Serialize
public void Serialize(GenericWriter writer)
{
writer.Write((int)this.m_SpawnedObjects.Count);
for (int i = 0; i < this.m_SpawnedObjects.Count; i++)
{
ISpawnable spawn = this.m_SpawnedObjects[i];
int serial = spawn.Serial;
writer.Write((int)serial);
}
writer.Write((bool)this.m_Running);
if (this.m_SpawnTimer != null)
{
writer.Write(true);
writer.WriteDeltaTime((DateTime)this.m_NextSpawn);
}
else
{
writer.Write(false);
}
}
示例12: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(1); // version
writer.Write((int)this.ContentType);
if (this.m_RespawnTimer != null)
{
writer.Write(true);
writer.WriteDeltaTime((DateTime)this.m_NextRespawnTime);
}
else
{
writer.Write(false);
}
}
示例13: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int) 1);
writer.Write( m_AllowMating );
writer.Write( m_HasEgg );
writer.Write( m_Pregnant );
writer.Write( m_S1 );
writer.Write( m_S2 );
writer.Write( (int) m_KPKorpre3 );
writer.Write( (int) m_Stage );
writer.WriteDeltaTime( m_EndMating );
}
示例14: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)3);
writer.Write((Item)this.m_MapItem);
writer.Write((int)this.m_NextNavPoint);
writer.Write((int)this.m_Facing);
writer.WriteDeltaTime(this.m_DecayTime);
writer.Write(this.m_Owner);
writer.Write(this.m_PPlank);
writer.Write(this.m_SPlank);
writer.Write(this.m_TillerMan);
writer.Write(this.m_Hold);
writer.Write(this.m_Anchored);
writer.Write(this.m_ShipName);
this.CheckDecay();
}
示例15: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(0); // version
writer.WriteEncodedInt(this.m_Artifacts.Length);
for (int i = 0; i < this.m_Artifacts.Length; i++)
{
StealableInstance si = this.m_Artifacts[i];
writer.Write((Item)si.Item);
writer.WriteDeltaTime((DateTime)si.NextRespawn);
}
}