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


C# GenericWriter.WriteDeltaTime方法代码示例

本文整理汇总了C#中GenericWriter.WriteDeltaTime方法的典型用法代码示例。如果您正苦于以下问题:C# GenericWriter.WriteDeltaTime方法的具体用法?C# GenericWriter.WriteDeltaTime怎么用?C# GenericWriter.WriteDeltaTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GenericWriter的用法示例。


在下文中一共展示了GenericWriter.WriteDeltaTime方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Serialize

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

            writer.WriteDeltaTime(m_DecayTime);
        }
开发者ID:greeduomacro,项目名称:cov-shard-svn-1,代码行数:7,代码来源:SCMMarker.cs

示例2: Serialize

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

			writer.Write( (int) 1 );

			writer.WriteDeltaTime( m_NextWoolTime );
		}
开发者ID:Grimoric,项目名称:RunUO.T2A,代码行数:8,代码来源:Sheep.cs

示例3: Serialize

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

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

            writer.WriteDeltaTime(this.m_End);
        }
开发者ID:Crylian,项目名称:ServUO,代码行数:8,代码来源:NavreyParalyzingWeb.cs

示例4: Serialize

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

			writer.Write( 0 ); // version

			writer.Write( m_Decays );

			if ( m_Decays )
				writer.WriteDeltaTime( m_DecayTime );
		}
开发者ID:FreeReign,项目名称:imaginenation,代码行数:11,代码来源:StarRoomGate.cs

示例5: Serialize

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

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

            writer.Write(this.m_DecayTimer != null);

            if (this.m_DecayTimer != null)
                writer.WriteDeltaTime(this.m_DecayTime);
        }
开发者ID:m309,项目名称:ForkUO,代码行数:11,代码来源:DecayedCorpse.cs

示例6: Serialize

		public void Serialize(GenericWriter writer)
		{
			writer.WriteEncodedInt(0); // version

			writer.Write(Owner);
			writer.Write(VendorName);
			writer.Write(ShopName);

			writer.Write(Items, true);
			writer.Write(Currency);

			writer.WriteDeltaTime(ExpireTime);
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:13,代码来源:VendorInventory.cs

示例7: Serialize

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

                writer.Write(1); // version

                writer.Write(m_Caster);
                writer.WriteDeltaTime(m_End);
            }
开发者ID:FreeReign,项目名称:imaginenation,代码行数:9,代码来源:PoisonField.cs

示例8: Serialize

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

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

            if (this.m_RestoreEquip == null)
            {
                writer.Write(false);
            }
            else
            {
                writer.Write(true);
                writer.Write(this.m_RestoreEquip);
            }

            writer.Write((int)this.m_Flags);

            writer.WriteDeltaTime(this.m_TimeOfDeath);

            List<KeyValuePair<Item, Point3D>> list = (this.m_RestoreTable == null ? null : new List<KeyValuePair<Item, Point3D>>(this.m_RestoreTable));
            int count = (list == null ? 0 : list.Count);

            writer.Write(count);

            for (int i = 0; i < count; ++i)
            {
                KeyValuePair<Item, Point3D> kvp = list[i];
                Item item = kvp.Key;
                Point3D loc = kvp.Value;

                writer.Write(item);

                if (item.Location == loc)
                {
                    writer.Write(false);
                }
                else
                {
                    writer.Write(true);
                    writer.Write(loc);
                }
            }

            writer.Write(this.m_DecayTimer != null);

            if (this.m_DecayTimer != null)
                writer.WriteDeltaTime(this.m_DecayTime);

            writer.Write(this.m_Looters);
            writer.Write(this.m_Killer);

            writer.Write(this.m_Aggressors);

            writer.Write(this.m_Owner);

            writer.Write((string)this.m_CorpseName);

            writer.Write((int)this.m_AccessLevel);
            writer.Write((Guild)this.m_Guild);
            writer.Write((int)this.m_Kills);

            writer.Write(this.m_EquipItems);
        }
开发者ID:Drilikath,项目名称:ForkUO,代码行数:64,代码来源:Corpse.cs

示例9: Serialize


//.........这里部分代码省略.........
			else
			{
				writer.Write(m_CollectionTitles.Count);

				for (int i = 0; i < m_CollectionTitles.Count; i++)
				{
					QuestWriter.Object(writer, m_CollectionTitles[i]);
				}
			}

			writer.Write(m_SelectedTitle);
			#endregion

			// Version 28
			writer.Write(m_PeacedUntil);
			writer.Write(m_AnkhNextUse);
			writer.Write(m_AutoStabled, true);

			if (m_AcquiredRecipes == null)
			{
				writer.Write(0);
			}
			else
			{
				writer.Write(m_AcquiredRecipes.Count);

				foreach (var kvp in m_AcquiredRecipes)
				{
					writer.Write(kvp.Key);
					writer.Write(kvp.Value);
				}
			}

			writer.WriteDeltaTime(m_LastHonorLoss);

			ChampionTitleInfo.Serialize(writer, m_ChampionTitles);

			writer.Write(m_LastValorLoss);
			writer.WriteEncodedInt(m_ToTItemsTurnedIn);
			writer.Write(m_ToTTotalMonsterFame); //This ain't going to be a small #.

			writer.WriteEncodedInt(m_AllianceMessageHue);
			writer.WriteEncodedInt(m_GuildMessageHue);

			writer.WriteEncodedInt(m_GuildRank.Rank);
			writer.Write(m_LastOnline);

			writer.WriteEncodedInt((int)m_SolenFriendship);

			QuestSerializer.Serialize(m_Quest, writer);

			if (m_DoneQuests == null)
			{
				writer.WriteEncodedInt(0);
			}
			else
			{
				writer.WriteEncodedInt(m_DoneQuests.Count);

				for (int i = 0; i < m_DoneQuests.Count; ++i)
				{
					QuestRestartInfo restartInfo = m_DoneQuests[i];

					QuestSerializer.Write(restartInfo.QuestType, QuestSystem.QuestTypes, writer);
					writer.Write(restartInfo.RestartTime);
				}
开发者ID:zerodowned,项目名称:justuo-with-ec-support,代码行数:67,代码来源:PlayerMobile.cs

示例10: Serialize

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

			writer.Write(0); // version

			EDI dest = GetDestination();

			writer.Write(dest != null);

			if (dest != null)
			{
				writer.Write(dest.Name);
			}

			writer.Write(m_DeleteTimer != null);

			if (m_DeleteTimer != null)
			{
				writer.WriteDeltaTime(m_DeleteTime);
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:22,代码来源:TalkingBaseEscortable.cs

示例11: Serialize

        public void Serialize(GenericWriter writer)
        {
            writer.Write((int)this.m_SpawnedObjects.Count);

            for (int i = 0; i < this.m_SpawnedObjects.Count; i++)
            {
                ISpawnable spawn = this.m_SpawnedObjects[i];

                int serial = spawn.Serial;

                writer.Write((int)serial);
            }

            writer.Write((bool)this.m_Running);

            if (this.m_SpawnTimer != null)
            {
                writer.Write(true);
                writer.WriteDeltaTime((DateTime)this.m_NextSpawn);
            }
            else
            {
                writer.Write(false);
            }
        }
开发者ID:m309,项目名称:ForkUO,代码行数:25,代码来源:SpawnEntry.cs

示例12: Serialize

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

            writer.WriteEncodedInt(1); // version

            writer.Write((int)this.ContentType);

            if (this.m_RespawnTimer != null)
            {
                writer.Write(true);
                writer.WriteDeltaTime((DateTime)this.m_NextRespawnTime);
            }
            else
            {
                writer.Write(false);
            }
        }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:18,代码来源:FillableContainers.cs

示例13: Serialize

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

            writer.Write((int) 1);

            writer.Write( m_AllowMating );
            writer.Write( m_HasEgg );
            writer.Write( m_Pregnant );
            writer.Write( m_S1 );
            writer.Write( m_S2 );
            writer.Write( (int) m_KPKorpre3 );
            writer.Write( (int) m_Stage );
            writer.WriteDeltaTime( m_EndMating );
        }
开发者ID:greeduomacro,项目名称:DimensionsNewAge,代码行数:15,代码来源:Evolution+Korpre+3.cs

示例14: Serialize

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

            writer.Write((int)3);

            writer.Write((Item)this.m_MapItem);
            writer.Write((int)this.m_NextNavPoint);

            writer.Write((int)this.m_Facing);

            writer.WriteDeltaTime(this.m_DecayTime);

            writer.Write(this.m_Owner);
            writer.Write(this.m_PPlank);
            writer.Write(this.m_SPlank);
            writer.Write(this.m_TillerMan);
            writer.Write(this.m_Hold);
            writer.Write(this.m_Anchored);
            writer.Write(this.m_ShipName);

            this.CheckDecay();
        }
开发者ID:m309,项目名称:ForkUO,代码行数:23,代码来源:BaseBoat.cs

示例15: Serialize

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

            writer.WriteEncodedInt(0); // version

            writer.WriteEncodedInt(this.m_Artifacts.Length);

            for (int i = 0; i < this.m_Artifacts.Length; i++)
            {
                StealableInstance si = this.m_Artifacts[i];

                writer.Write((Item)si.Item);
                writer.WriteDeltaTime((DateTime)si.NextRespawn);
            }
        }
开发者ID:Ziden,项目名称:ServUO-EC-Test-Fork,代码行数:16,代码来源:StealableArtifactsSpawner.cs


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