Exemple #1
0
        private byte[] OnGetOptions(GameSession session, byte[] body)
        {
            GetOptions request = new GetOptions();
            using(Stream stream = new MemoryStream(body)) {
                request.Deserialize(stream);
            }

            ClientOptions response = new ClientOptions();
            response.Options.Add(new PegasusUtil.ClientOption() {
                Index = 1,
                AsUint64 = 0x20FFFF3FFFCCFCFF
            });

            response.Options.Add(new PegasusUtil.ClientOption() {
                Index = 2,
                AsUint64 = 0xF0BFFFEF3FFF
            });

            response.Options.Add(new PegasusUtil.ClientOption() {
                Index = 18,
                AsUint64 = 0xB765A8C
            });

            return response.EncodeResponse(241);
        }