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


C# IValueWriter.WriteUInt32方法代码示例

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


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

示例1: WritePayload

        public override void WritePayload(IValueWriter writerm)
        {
            writerm.WriteUInt32(this.NetworkID);
            writerm.WriteString(this.CharacterName);

            writerm.WriteByte((byte)this.Action);
        }
开发者ID:heyitsanewb,项目名称:PokeWorld-Online,代码行数:7,代码来源:PlayerUpdateMessage.cs

示例2: WritePayload

        public override void WritePayload(IValueWriter writer)
        {
            writer.WriteUInt32 (this.NetworkID);

            writer.WriteInt32 (this.X);
            writer.WriteInt32 (this.Y);
            writer.WriteInt32 (this.Direction);

            writer.WriteString (this.Animation);
        }
开发者ID:heyitsanewb,项目名称:PokeWorld-Online,代码行数:10,代码来源:ServerMovementMessage.cs

示例3: WritePayload

 public override void WritePayload(IValueWriter writer)
 {
     writer.WriteUInt32(this.NetworkID);
 }
开发者ID:heyitsanewb,项目名称:PokeWorld-Online,代码行数:4,代码来源:LogoutMessage.cs

示例4: WritePayload

 public override void WritePayload(IValueWriter writer)
 {
     writer.WriteUInt32 (this.NetworkID);
     writer.WriteInt32 ((int) this.Activation);
 }
开发者ID:heyitsanewb,项目名称:PokeWorld-Online,代码行数:5,代码来源:ClientEventRequestMessage.cs

示例5: WritePayload

 public override void WritePayload(IValueWriter writerm)
 {
     writerm.WriteUInt32(this.RequestedPlayerNetworkID);
 }
开发者ID:heyitsanewb,项目名称:PokeWorld-Online,代码行数:4,代码来源:PlayerRequestMessage.cs

示例6: WritePayload

 public override void WritePayload(ISerializationContext context, IValueWriter writer)
 {
     writer.WriteUInt32 (EntityID);
 }
开发者ID:NullSoldier,项目名称:Cinco,代码行数:4,代码来源:DestroyEntityMessage.cs

示例7: WriteEntity

        private void WriteEntity(NetworkEntity entity, ISerializationContext context, IValueWriter writer)
        {
            writer.WriteString (entity.EntityName);
            writer.WriteUInt32 (entity.NetworkID);
            writer.WriteInt32 (entity.Fields.Count);

            foreach (var field in entity.Fields)
            {
                writer.WriteString (field.Key);

                // Write the field type
                ushort typeID;
                context.TypeMap.GetTypeId (field.Value.Value.GetType (), out typeID);
                writer.WriteUInt16 (typeID);

                if (field.Value.Value is Vector2)
                    writer.Write (context, (Vector2)field.Value.Value, Vector2Serializer.Instance);
                else if (field.Value.Value is Vector3)
                    writer.Write (context, (Vector3)field.Value.Value, Vector3Serializer.Instance);
                else if (field.Value.Value is string)
                    writer.WriteString ((string)field.Value.Value);
                else
                    writer.Write (context, field.Value.Value, field.Value.Type);
            }
        }
开发者ID:strager,项目名称:Cinco,代码行数:25,代码来源:EntitySnapshotMessage.cs

示例8: WritePayload

 public override void WritePayload(IValueWriter writerm)
 {
     writerm.WriteUInt32(this.NetworkIDAssigned);
 }
开发者ID:heyitsanewb,项目名称:PokeWorld-Online,代码行数:4,代码来源:LoginSuccessMessage.cs


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