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


C# NetworkReader.ReadNetworkId方法代码示例

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


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

示例1: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
     m_id = reader.ReadNetworkId();
     m_parentId = reader.ReadNetworkId();
     m_childId = reader.ReadInt32();
     m_position = reader.ReadVector3();
     m_payload = reader.ReadBytesAndSize();
 }
开发者ID:bpeake13,项目名称:UnityChildSpawning,代码行数:8,代码来源:ChildSpawnMessage.cs

示例2: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
     this.netId = reader.ReadNetworkId();
     this.stateHash = (int) reader.ReadPackedUInt32();
     this.normalizedTime = reader.ReadSingle();
     this.parameters = reader.ReadBytesAndSize();
 }
开发者ID:CarlosHBC,项目名称:UnityDecompiled,代码行数:7,代码来源:AnimationMessage.cs

示例3: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
   this.netId = reader.ReadNetworkId();
   this.payload = reader.ReadBytesAndSize();
   this.teleport = reader.ReadBoolean();
   this.time = (int) reader.ReadPackedUInt32();
 }
开发者ID:BlakeTriana,项目名称:unity-decompiled,代码行数:7,代码来源:OverrideTransformMessage.cs

示例4: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
     this.netId = reader.ReadNetworkId();
     this.sceneId = reader.ReadSceneId();
     this.position = reader.ReadVector3();
     this.payload = reader.ReadBytesAndSize();
 }
开发者ID:randomize,项目名称:VimConfig,代码行数:7,代码来源:ObjectSpawnSceneMessage.cs

示例5: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
   this.oldConnectionId = (int) reader.ReadPackedUInt32();
   this.playerControllerId = (short) reader.ReadPackedUInt32();
   this.netId = reader.ReadNetworkId();
   this.msgData = reader.ReadBytesAndSize();
   if (this.msgData == null)
     this.msgSize = 0;
   else
     this.msgSize = this.msgData.Length;
 }
开发者ID:BlakeTriana,项目名称:unity-decompiled,代码行数:11,代码来源:ReconnectMessage.cs

示例6: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
     this.netId = reader.ReadNetworkId();
     this.assetId = reader.ReadNetworkHash128();
     this.position = reader.ReadVector3();
     this.payload = reader.ReadBytesAndSize();
     uint num = 0x10;
     if ((reader.Length - reader.Position) >= num)
     {
         this.rotation = reader.ReadQuaternion();
     }
 }
开发者ID:CarlosHBC,项目名称:UnityDecompiled,代码行数:12,代码来源:ObjectSpawnMessage.cs

示例7: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
   this.connectionId = (int) reader.ReadPackedUInt32();
   this.address = reader.ReadString();
   this.port = (int) reader.ReadPackedUInt32();
   this.isHost = reader.ReadBoolean();
   this.isYou = reader.ReadBoolean();
   uint num = reader.ReadPackedUInt32();
   if (num <= 0U)
     return;
   List<PeerInfoPlayer> peerInfoPlayerList = new List<PeerInfoPlayer>();
   for (uint index = 0; index < num; ++index)
   {
     PeerInfoPlayer peerInfoPlayer;
     peerInfoPlayer.netId = reader.ReadNetworkId();
     peerInfoPlayer.playerControllerId = (short) reader.ReadPackedUInt32();
     peerInfoPlayerList.Add(peerInfoPlayer);
   }
   this.playerIds = peerInfoPlayerList.ToArray();
 }
开发者ID:BlakeTriana,项目名称:unity-decompiled,代码行数:20,代码来源:PeerInfoMessage.cs

示例8: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
     this.connectionId = (int) reader.ReadPackedUInt32();
     this.address = reader.ReadString();
     this.port = (int) reader.ReadPackedUInt32();
     this.isHost = reader.ReadBoolean();
     this.isYou = reader.ReadBoolean();
     uint num = reader.ReadPackedUInt32();
     if (num > 0)
     {
         List<PeerInfoPlayer> list = new List<PeerInfoPlayer>();
         for (uint i = 0; i < num; i++)
         {
             PeerInfoPlayer player;
             player.netId = reader.ReadNetworkId();
             player.playerControllerId = (short) reader.ReadPackedUInt32();
             list.Add(player);
         }
         this.playerIds = list.ToArray();
     }
 }
开发者ID:CarlosHBC,项目名称:UnityDecompiled,代码行数:21,代码来源:PeerInfoMessage.cs

示例9: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
   this.netId = reader.ReadNetworkId();
 }
开发者ID:BlakeTriana,项目名称:unity-decompiled,代码行数:4,代码来源:ObjectDestroyMessage.cs

示例10: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
     this.netId = reader.ReadNetworkId();
     this.playerControllerId = (short)reader.ReadPackedUInt32();
 }
开发者ID:Kitabalef,项目名称:Unet-Decompiles,代码行数:5,代码来源:OwnerMessage.cs

示例11: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
   this.netId = reader.ReadNetworkId();
   this.hash = (int) reader.ReadPackedUInt32();
 }
开发者ID:BlakeTriana,项目名称:unity-decompiled,代码行数:5,代码来源:AnimationTriggerMessage.cs

示例12: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
   this.netId = reader.ReadNetworkId();
   this.authority = reader.ReadBoolean();
 }
开发者ID:BlakeTriana,项目名称:unity-decompiled,代码行数:5,代码来源:ClientAuthorityMessage.cs

示例13: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
   this.netId = reader.ReadNetworkId();
   this.parameters = reader.ReadBytesAndSize();
 }
开发者ID:BlakeTriana,项目名称:unity-decompiled,代码行数:5,代码来源:AnimationParametersMessage.cs

示例14: Deserialize

 public override void Deserialize(NetworkReader reader)
 {
     this.connectionId = (int) reader.ReadPackedUInt32();
     this.netId = reader.ReadNetworkId();
     this.authorityState = reader.ReadBoolean();
 }
开发者ID:CarlosHBC,项目名称:UnityDecompiled,代码行数:6,代码来源:PeerAuthorityMessage.cs


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