當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。