Ejemplo n.º 1
0
        public void Test()
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test);


            _invoker.End();
        }
Ejemplo n.º 2
0
        public void SetPlayerData(KGPlayerData data)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.SetPlayerData_KGPlayerData);

            Serialize.Utility.Write(writer, data, "data");

            _invoker.End();
        }
Ejemplo n.º 3
0
        public void Test(FixedArray <Msg, ArrayLength_2> msg)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_Msg_A2);

            Serialize.Utility.DoWrite(writer, msg, "msg", Serialize.Utility.Write);

            _invoker.End();
        }
Ejemplo n.º 4
0
        public void Test(Msg msg)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_Msg);

            Serialize.Utility.Write(writer, msg, "msg");

            _invoker.End();
        }
Ejemplo n.º 5
0
        public void Test(FixedArray <byte, ArrayLength_2> v)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_byte_A2);

            Serialize.Utility.DoWrite(writer, v, "v", Serialize.Utility.Write);

            _invoker.End();
        }
Ejemplo n.º 6
0
        public void Test(List <bool> v)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_bool_A);

            Serialize.Utility.DoWrite(writer, v, "v", Serialize.Utility.Write);

            _invoker.End();
        }
Ejemplo n.º 7
0
        public void Call_A(int a, int b)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Call_A_int_int);

            Serialize.Utility.Write(writer, a, "a");
            Serialize.Utility.Write(writer, b, "b");

            _invoker.End();
        }
Ejemplo n.º 8
0
        public void Test(FixedArray <List <float>, ArrayLength_2> v)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_float_A_A2);

            Serialize.Utility.DoWrite(writer, v, "v", (w1, v1, n1) => {
                return(Serialize.Utility.DoWrite(w1, v1, n1, Serialize.Utility.Write));
            });

            _invoker.End();
        }
Ejemplo n.º 9
0
        public void Test(List <List <int> > v)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_int_A_A);

            Serialize.Utility.DoWrite(writer, v, "v", (w1, v1, n1) => {
                return(Serialize.Utility.DoWrite(w1, v1, n1, Serialize.Utility.Write));
            });

            _invoker.End();
        }
Ejemplo n.º 10
0
        public KGPlayerData GetPlayerData()
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.GetPlayerData);


            KGPlayerData __ret__ = new KGPlayerData();

            Serialize.Utility.Read(_invoker.End(), ref __ret__);
            return(__ret__);
        }
Ejemplo n.º 11
0
        public string Test(string v)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_string);

            Serialize.Utility.Write(writer, v, "v");

            string __ret__ = "";

            Serialize.Utility.Read(_invoker.End(), ref __ret__);
            return(__ret__);
        }
Ejemplo n.º 12
0
        public int Call_B(string str)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Call_B_string);

            Serialize.Utility.Write(writer, str, "str");

            int __ret__ = 0;

            Serialize.Utility.Read(_invoker.End(), ref __ret__);
            return(__ret__);
        }
Ejemplo n.º 13
0
        public float Test(float v)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_float);

            Serialize.Utility.Write(writer, v, "v");

            float __ret__ = 0.0f;

            Serialize.Utility.Read(_invoker.End(), ref __ret__);
            return(__ret__);
        }
Ejemplo n.º 14
0
        public byte Test(byte v)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_byte);

            Serialize.Utility.Write(writer, v, "v");

            byte __ret__ = 0;

            Serialize.Utility.Read(_invoker.End(), ref __ret__);
            return(__ret__);
        }
Ejemplo n.º 15
0
        public bool Test(bool v)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_bool);

            Serialize.Utility.Write(writer, v, "v");

            bool __ret__ = false;

            Serialize.Utility.Read(_invoker.End(), ref __ret__);
            return(__ret__);
        }
Ejemplo n.º 16
0
        public KGPlayerData TranslatePlayerData(KGPlayerData data)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.TranslatePlayerData_KGPlayerData);

            Serialize.Utility.Write(writer, data, "data");

            KGPlayerData __ret__ = new KGPlayerData();

            Serialize.Utility.Read(_invoker.End(), ref __ret__);
            return(__ret__);
        }
Ejemplo n.º 17
0
        public Msg Test(int a, int b)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_int_int);

            Serialize.Utility.Write(writer, a, "a");
            Serialize.Utility.Write(writer, b, "b");

            Msg __ret__ = new Msg();

            Serialize.Utility.Read(_invoker.End(), ref __ret__);
            return(__ret__);
        }
Ejemplo n.º 18
0
        public List <Msg> Test(int a, int b, int c)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_int_int_int);

            Serialize.Utility.Write(writer, a, "a");
            Serialize.Utility.Write(writer, b, "b");
            Serialize.Utility.Write(writer, c, "c");

            List <Msg> __ret__ = new List <Msg>();

            Serialize.Utility.DoRead(_invoker.End(), ref __ret__, "", Serialize.Utility.Read);
            return(__ret__);
        }
Ejemplo n.º 19
0
        public FixedArray <Msg, ArrayLength_2> Test(int a, int b, int c, int d)
        {
            Serialize.IWriter writer = _invoker.Begin(MODULE_ID);
            writer.Write(HASH_CODE);
            writer.Write((int)Message.Test_int_int_int_int);

            Serialize.Utility.Write(writer, a, "a");
            Serialize.Utility.Write(writer, b, "b");
            Serialize.Utility.Write(writer, c, "c");
            Serialize.Utility.Write(writer, d, "d");

            FixedArray <Msg, ArrayLength_2> __ret__ = new FixedArray <Msg, ArrayLength_2>();

            Serialize.Utility.DoRead(_invoker.End(), ref __ret__, "", Serialize.Utility.Read);
            return(__ret__);
        }