当前位置: 首页>>代码示例>>C#>>正文


C# GenericWriter.WriteItem方法代码示例

本文整理汇总了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);
        }
开发者ID:greeduomacro,项目名称:dragonknights-uo,代码行数:7,代码来源:BallotBoxAccount.cs

示例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 );
		}
开发者ID:Godkong,项目名称:Origins,代码行数:19,代码来源:GauntletSpawner.cs

示例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);
        }
开发者ID:PepeBiondi,项目名称:runsa,代码行数:40,代码来源:ChampionSpawn.cs

示例4: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 0 ); // version

			writer.WriteItem<BroadcastCrystal>( m_Sender );
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:8,代码来源:CommunicationCrystals.cs

示例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 );
        }
开发者ID:Godkong,项目名称:RunUO,代码行数:33,代码来源:ChampionSpawn.cs

示例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] );
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:13,代码来源:MiniChampController.cs

示例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 );
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:18,代码来源:PeerlessPlatform.cs

示例8: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			writer.Write((int)0); // version

			writer.WriteItem<TimeoutTeleporter>(m_Teleporter);
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:8,代码来源:Teleporter.cs

示例9: Serialize

        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (int) 0 ); // version

            writer.WriteItem( m_Owner );
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:8,代码来源:Corpse.cs

示例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 );
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:12,代码来源:ChildDistSpawner.cs

示例11: Serialize

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 0 ); // version

			writer.WriteItem<PlagueBeastOrgan>( m_Organ );
		}
开发者ID:nathanvy,项目名称:runuo,代码行数:8,代码来源:PlagueBeastInnard.cs

示例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);
        }
开发者ID:greeduomacro,项目名称:RunUO-1,代码行数:16,代码来源:BarrierCrystals.cs

示例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] );
        }
开发者ID:Ravenwolfe,项目名称:xrunuo,代码行数:15,代码来源:ArisenController.cs


注:本文中的Server.GenericWriter.WriteItem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。