コード例 #1
0
        static OrionPlayerServiceTests()
        {
            var bytes  = new byte[100];
            var packet = new ClientConnect {
                Version = "Terraria" + Terraria.Main.curRelease
            };
            var packetLength = packet.Write(bytes, PacketContext.Client);

            _serverConnectPacketBytes = bytes[..packetLength];