本文整理汇总了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();
}
示例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();
}
示例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();
}
示例4: Deserialize
public override void Deserialize(NetworkReader reader)
{
this.netId = reader.ReadNetworkId();
this.sceneId = reader.ReadSceneId();
this.position = reader.ReadVector3();
this.payload = reader.ReadBytesAndSize();
}
示例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;
}
示例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();
}
}
示例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();
}
示例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();
}
}
示例9: Deserialize
public override void Deserialize(NetworkReader reader)
{
this.netId = reader.ReadNetworkId();
}
示例10: Deserialize
public override void Deserialize(NetworkReader reader)
{
this.netId = reader.ReadNetworkId();
this.playerControllerId = (short)reader.ReadPackedUInt32();
}
示例11: Deserialize
public override void Deserialize(NetworkReader reader)
{
this.netId = reader.ReadNetworkId();
this.hash = (int) reader.ReadPackedUInt32();
}
示例12: Deserialize
public override void Deserialize(NetworkReader reader)
{
this.netId = reader.ReadNetworkId();
this.authority = reader.ReadBoolean();
}
示例13: Deserialize
public override void Deserialize(NetworkReader reader)
{
this.netId = reader.ReadNetworkId();
this.parameters = reader.ReadBytesAndSize();
}
示例14: Deserialize
public override void Deserialize(NetworkReader reader)
{
this.connectionId = (int) reader.ReadPackedUInt32();
this.netId = reader.ReadNetworkId();
this.authorityState = reader.ReadBoolean();
}