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


            _invoker.End();
        }
Esempio 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();
        }
Esempio 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();
        }
Esempio 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();
        }
Esempio 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();
        }
Esempio 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();
        }
Esempio 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();
        }
Esempio 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();
        }
Esempio 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();
        }
Esempio 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__);
        }
Esempio 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__);
        }
Esempio 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__);
        }
Esempio 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__);
        }
Esempio 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__);
        }
Esempio 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__);
        }
Esempio 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__);
        }
Esempio 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__);
        }
Esempio 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__);
        }
Esempio 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__);
        }