本文整理汇总了C#中Server.GenericWriter.WriteItem方法的典型用法代码示例。如果您正苦于以下问题:C# GenericWriter.WriteItem方法的具体用法?C# GenericWriter.WriteItem怎么用?C# GenericWriter.WriteItem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.GenericWriter
的用法示例。
在下文中一共展示了GenericWriter.WriteItem方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(0); // version
writer.WriteItem<BallotBoxAccount>(m_CBB);
}
示例2: 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 );
}
示例3: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)5); // version
writer.Write(m_DamageEntries.Count);
foreach (KeyValuePair<Mobile, int> kvp in m_DamageEntries)
{
writer.Write(kvp.Key);
writer.Write(kvp.Value);
}
writer.Write(m_ConfinedRoaming);
writer.WriteItem<IdolOfTheChampion>(m_Idol);
writer.Write(m_HasBeenAdvanced);
writer.Write(m_SpawnArea);
writer.Write(m_RandomizeType);
// writer.Write( m_SpawnRange );
writer.Write(m_Kills);
writer.Write((bool)m_Active);
writer.Write((int)m_Type);
writer.Write(m_Creatures, true);
writer.Write(m_RedSkulls, true);
writer.Write(m_WhiteSkulls, true);
writer.WriteItem<ChampionPlatform>(m_Platform);
writer.WriteItem<ChampionAltar>(m_Altar);
writer.Write(m_ExpireDelay);
writer.WriteDeltaTime(m_ExpireTime);
writer.Write(m_Champion);
writer.Write(m_RestartDelay);
writer.Write(m_RestartTimer != null);
if (m_RestartTimer != null)
writer.WriteDeltaTime(m_RestartTime);
}
示例4: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
writer.WriteItem<BroadcastCrystal>( m_Sender );
}
示例5: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int)4 ); // version
writer.Write( m_ConfinedRoaming );
writer.WriteItem<IdolOfTheChampion>( m_Idol );
writer.Write( m_HasBeenAdvanced );
writer.Write( m_SpawnArea );
writer.Write( m_RandomizeType );
// writer.Write( m_SpawnRange );
writer.Write( m_Kills );
writer.Write( (bool)m_Active );
writer.Write( (int)m_Type );
writer.Write( m_Creatures, true );
writer.Write( m_RedSkulls, true );
writer.Write( m_WhiteSkulls, true );
writer.WriteItem<ChampionPlatform>( m_Platform );
writer.WriteItem<ChampionAltar>( m_Altar );
writer.Write( m_ExpireDelay );
writer.WriteDeltaTime( m_ExpireTime );
writer.Write( m_Champion );
writer.Write( m_RestartDelay );
writer.Write( m_RestartTimer != null );
if( m_RestartTimer != null )
writer.WriteDeltaTime( m_RestartTime );
}
示例6: Serialize
public void Serialize( GenericWriter writer )
{
writer.WriteItem<MiniChampController>( m_Owner );
writer.Write( m_Killed );
writer.Write( m_Spawned );
writer.Write( m_Required );
writer.Write( m_MonsterType.FullName );
writer.Write( m_Creatures.Count );
for ( int i = 0; i < m_Creatures.Count; i++ )
writer.Write( m_Creatures[i] );
}
示例7: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
writer.Write( m_ExitLocation );
writer.Write( m_Braziers.Count );
for ( int i = 0; i < m_Braziers.Count; i++ )
writer.WriteItem<PeerlessKeyBrazier>( m_Braziers[i] );
writer.Write( m_Instances.Count );
for ( int i = 0; i < m_Instances.Count; i++ )
m_Instances[i].Serialize( writer );
}
示例8: Serialize
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
writer.WriteItem<TimeoutTeleporter>(m_Teleporter);
}
示例9: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
writer.WriteItem( m_Owner );
}
示例10: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
writer.WriteItem<MasterDistSpawner>( m_Master );
writer.Write( m_HomeRange );
writer.Write( m_WalkingRange );
writer.WriteItem<WayPoint>( m_WayPoint );
}
示例11: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 0 ); // version
writer.WriteItem<PlagueBeastOrgan>( m_Organ );
}
示例12: Serialize
/// <summary>
/// Saves the settings of the specific instances of this
/// item
/// </summary>
/// <param name="writer"></param>
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.WriteEncodedInt(0); // version
writer.WriteEncodedInt(m_DischargeRate);
writer.WriteItem<BarrierCrystal>(m_MajorCrystal);
writer.WriteEncodedInt(m_Charges);
writer.Write((bool)m_Locked);
}
示例13: Serialize
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.WriteEncodedInt( 1 ); // version
// Version 1
writer.Write( (bool) m_ForceDeactivate );
// Version 0
writer.WriteEncodedInt( m_Spawners.Length );
for ( int i = 0; i < m_Spawners.Length; i++ )
writer.WriteItem<CreatureSpawner>( m_Spawners[i] );
}