示例#1
0
 public ChangeObjectOwnershipMessage(P2PMessage msg)
 {
     objectId    = msg.ReadUShort();
     ownerId     = msg.ReadByte();
     linVelocity = msg.ReadVector3();
     angVelocity = msg.ReadVector3();
 }
 public ObjectSyncMessage(P2PMessage msg)
 {
     id       = msg.ReadUShort();
     position = msg.ReadVector3();
     rotation = msg.ReadCompressedQuaternion();
 }
 public IDAllocationMessage(P2PMessage msg)
 {
     namePath    = msg.ReadUnicodeString();
     allocatedId = msg.ReadUShort();
 }