public ObjectSyncMessage(P2PMessage msg) { int objCount = msg.ReadByte(); for (int i = 0; i < objCount; i++) { objectsToSync.Add(msg.ReadByte(), Tuple.Create(msg.ReadVector3(), msg.ReadCompressedQuaternion())); } }
public PlayerPositionMessage(P2PMessage msg) { playerId = msg.ReadByte(); headPos = msg.ReadVector3(); lHandPos = msg.ReadVector3(); rHandPos = msg.ReadVector3(); headRot = msg.ReadCompressedQuaternion(); lHandRot = msg.ReadCompressedQuaternion(); rHandRot = msg.ReadCompressedQuaternion(); }
public ClientJoinMessage(P2PMessage msg) { playerId = msg.ReadByte(); steamId.Value = msg.ReadUlong(); name = msg.ReadUnicodeString(); }
public IDAllocationMessage(P2PMessage msg) { namePath = msg.ReadUnicodeString(); allocatedId = msg.ReadByte(); }
public OtherPlayerNameMessage(P2PMessage msg) { playerId = msg.ReadByte(); name = msg.ReadUnicodeString(); }