本文整理汇总了C#中GenericWriter.WriteItem方法的典型用法代码示例。如果您正苦于以下问题:C# GenericWriter.WriteItem方法的具体用法?C# GenericWriter.WriteItem怎么用?C# GenericWriter.WriteItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GenericWriter
的用法示例。
在下文中一共展示了GenericWriter.WriteItem方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(3);
//Version 3
writer.Write((int)ScoringType);
writer.Write(ScoreModifier);
//Version 2
writer.WriteItem(m_EventSupplier);
writer.Write(m_UseSphereRules);
writer.Write(m_GiveHorses);
writer.Write(m_MatchMin);
writer.Write(m_LeaveLocation);
writer.Write(m_LeaveMap);
writer.Write(m_Started);
writer.Write(m_Active);
writer.Write(m_AcceptingContestants);
writer.WriteItemList(m_DMSpawnPoints);
WriteMountCollection(m_MountCollection, writer);
}
示例2: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
writer.WriteItem(m_Teleporter);
}
示例3: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 1 ); // version
writer.Write( m_RegionBounds );
writer.WriteItemList<BaseTrap>( m_Traps, false );
writer.Write( m_Creatures, false );
writer.Write( m_TypeName );
writer.WriteItem<BaseDoor>( m_Door );
writer.WriteItem<BaseAddon>( m_Addon );
writer.WriteItem<GauntletSpawner>( m_Sequence );
writer.Write( (int) m_State );
}
示例4: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(0); // version
writer.WriteItem<BroadcastCrystal>(this.m_Sender);
}
示例5: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
writer.WriteItem<TimeoutTeleporter>(this.m_Teleporter);
}
示例6: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)6); // version
writer.Write(SpawnName);
writer.Write(AutoRestart);
writer.Write(SpawnMod);
writer.Write(SpawnRadius);
writer.Write(this.m_DamageEntries.Count);
foreach (KeyValuePair<Mobile, int> kvp in this.m_DamageEntries)
{
writer.Write(kvp.Key);
writer.Write(kvp.Value);
}
writer.Write(this.m_ConfinedRoaming);
writer.WriteItem<IdolOfTheChampion>(this.m_Idol);
writer.Write(this.m_HasBeenAdvanced);
writer.Write(this.m_SpawnArea);
writer.Write(this.m_RandomizeType);
// writer.Write( m_SpawnRange );
writer.Write(this.m_Kills);
writer.Write((bool)this.m_Active);
writer.Write((int)this.m_Type);
writer.Write(this.m_Creatures, true);
writer.Write(this.m_RedSkulls, true);
writer.Write(this.m_WhiteSkulls, true);
writer.WriteItem<ChampionPlatform>(this.m_Platform);
writer.WriteItem<ChampionAltar>(this.m_Altar);
writer.Write(this.m_ExpireDelay);
writer.WriteDeltaTime(this.m_ExpireTime);
writer.Write(this.m_Champion);
writer.Write(this.m_RestartDelay);
writer.Write(this.m_RestartTimer != null);
if (this.m_RestartTimer != null)
writer.WriteDeltaTime(this.m_RestartTime);
}
示例7: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
writer.WriteItem(ValorItemInfo);
writer.Write(Cost);
writer.Write(Cat);
writer.Write(Title);
writer.Write(Description);
}
示例8: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( 1 ); // version
writer.Write( m_RegionBounds );
writer.WriteItemList( m_Traps, false );
writer.Write( m_Creatures, false );
writer.Write( m_TypeName );
writer.WriteItem( m_Door );
writer.WriteItem( m_Addon );
writer.WriteItem( m_Sequence );
writer.Write( (int) m_State );
}
示例9: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
writer.WriteItem( m_Sender );
}
示例10: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(0); // version
writer.WriteItem<PlagueBeastOrgan>(this.m_Organ);
}