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


C# GenericWriter.WriteItem方法代码示例

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

示例2: Serialize

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

			writer.Write(0); // version

			writer.WriteItem(m_Teleporter);
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:8,代码来源:Teleporter.cs

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

示例4: Serialize

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

            writer.WriteEncodedInt(0); // version

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

示例5: Serialize

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

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

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

示例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);
        }
开发者ID:Tukaramdas,项目名称:ServUO-EC-Test-Fork,代码行数:45,代码来源:ChampionSpawn.cs

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

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

示例9: Serialize

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

			writer.WriteEncodedInt( 0 ); // version

			writer.WriteItem( m_Sender );
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:8,代码来源:CommunicationCrystals.cs

示例10: Serialize

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

            writer.WriteEncodedInt(0); // version

            writer.WriteItem<PlagueBeastOrgan>(this.m_Organ);
        }
开发者ID:zerodowned,项目名称:JustUO-merged-with-EC-Support,代码行数:8,代码来源:PlagueBeastInnard.cs


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