Пример #1
0
        public void StructTest(IntPtr _, IntPtr b_pointer, int b_length)
        {
            var b = new Core.Util.Buffer();

            b.ReadFromPointer(b_pointer, b_length);


            var result = Client.ClientPipe.CallSerializedFunction(PipeId, new Core.IPC.SerializedFunction()
            {
                ClientId    = ClientId,
                InterfaceId = InterfaceId,
                Name        = "StructTest",
                Args        = new object[] { b },
            });

            b = (Core.Util.Buffer)result.Args[0];

            b.WriteToPointer(b_pointer, b_length);
        }
Пример #2
0
        public int GetChatMessage(IntPtr _, ulong steam_id, int msg_index, IntPtr b_pointer, int b_length, ref uint msg_type)
        {
            var b = new Core.Util.Buffer();

            b.ReadFromPointer(b_pointer, b_length);


            var result = Client.ClientPipe.CallSerializedFunction(PipeId, new Core.IPC.SerializedFunction()
            {
                ClientId    = ClientId,
                InterfaceId = InterfaceId,
                Name        = "GetChatMessage",
                Args        = new object[] { steam_id, msg_index, b, msg_type },
            });

            b        = (Core.Util.Buffer)result.Args[2];
            msg_type = (uint)result.Args[3];

            b.WriteToPointer(b_pointer, b_length);

            return((int)result.Result);
        }