public static NetworkId ReadNetworkId(this BasePacket packet) { uint connection = packet.ReadUIntVB(); uint entity = packet.ReadUIntVB(); NetAssert.True(connection != uint.MaxValue); return(new NetworkId(connection, entity)); }
public static int ReadIntVB(this BasePacket packet) { return((int)packet.ReadUIntVB()); }