Beispiel #1
0
        public bool encode(ref byte[] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Write(ref __buff__, ref __used__, totalLength))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, protocolId))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, debugIndex))
            {
                return(false);
            }



            return(true);
        }
Beispiel #2
0
        public bool encode(ref byte[] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Write(ref __buff__, ref __used__, i))
            {
                return(false);
            }



            {
                for (int __i__ = 0; __i__ < i; ++__i__)
                {
                    if (!s[__i__].encode(ref __buff__, ref __used__))
                    {
                        return(false);
                    }
                }
            }


            if (!CProtocolHelp.Write(ref __buff__, ref __used__, f))
            {
                return(false);
            }



            return(true);
        }
Beispiel #3
0
        public bool decode(byte [] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Read(__buff__, ref __used__, ref objID))
            {
                return(false);
            }


            {
                for (int __i__ = 0; __i__ < 1; ++__i__)
                {
                    SObjectMoveInfo __t__ = new SObjectMoveInfo();
                    if (!__t__.decode(__buff__, ref __used__))
                    {
                        return(false);
                    }
                    minfo = __t__;
                }
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref action))
            {
                return(false);
            }


            return(true);
        }
Beispiel #4
0
        public bool decode(byte [] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Read(__buff__, ref __used__, ref i))
            {
                return(false);
            }


            {
                for (int __i__ = 0; __i__ < i; ++__i__)
                {
                    SBasicRoleInfo __t__ = new SBasicRoleInfo();
                    if (!__t__.decode(__buff__, ref __used__))
                    {
                        return(false);
                    }
                    s[__i__] = __t__;
                }
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref f))
            {
                return(false);
            }


            return(true);
        }
Beispiel #5
0
        public bool encode(ref byte[] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Write(ref __buff__, ref __used__, objID))
            {
                return(false);
            }



            {
                for (int __i__ = 0; __i__ < 1; ++__i__)
                {
                    if (!minfo.encode(ref __buff__, ref __used__))
                    {
                        return(false);
                    }
                }
            }


            if (!CProtocolHelp.Write(ref __buff__, ref __used__, action))
            {
                return(false);
            }



            return(true);
        }
Beispiel #6
0
        public bool decode(byte [] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Read(__buff__, ref __used__, ref roomid))
            {
                return(false);
            }


            return(true);
        }
Beispiel #7
0
        public bool encode(ref byte[] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Write(ref __buff__, ref __used__, roomid))
            {
                return(false);
            }



            return(true);
        }
Beispiel #8
0
        public bool encode(ref byte[] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Write(ref __buff__, ref __used__, pos_x))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, pos_y))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, pos_z))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, dir_x))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, dir_y))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, dir_z))
            {
                return(false);
            }



            return(true);
        }
Beispiel #9
0
        public bool encode(ref byte[] __buff__, ref int __used__)
        {
            {
                short __s__ = (short)rsp.Length;
                if (CProtocolHelp.Write(ref __buff__, ref __used__, __s__))
                {
                    if (!CProtocolHelp.Write(ref __buff__, ref __used__, __s__, rsp))
                    {
                        return(false);
                    }
                }
                else
                {
                    return(false);
                }
            }


            return(true);
        }
Beispiel #10
0
        public bool decode(byte [] __buff__, ref int __used__)
        {
            {
                short __s__ = 0;
                if (CProtocolHelp.Read(__buff__, ref __used__, ref __s__))
                {
                    if (!CProtocolHelp.Read(__buff__, ref __used__, __s__, ref rsp))
                    {
                        return(false);
                    }
                }
                else
                {
                    return(false);
                }
            }


            return(true);
        }
Beispiel #11
0
        public bool decode(byte [] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Read(__buff__, ref __used__, ref pos_x))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref pos_y))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref pos_z))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref dir_x))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref dir_y))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref dir_z))
            {
                return(false);
            }


            return(true);
        }
Beispiel #12
0
        public bool decode(byte [] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Read(__buff__, ref __used__, ref totalLength))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref protocolId))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref debugIndex))
            {
                return(false);
            }


            return(true);
        }
Beispiel #13
0
        public bool encode(ref byte[] __buff__, ref int __used__)
        {
            {
                if (__used__ + sizeof(UInt32) * 30 <= __buff__.Length)
                {
                    for (int __i__ = 0; __i__ < 30; ++__i__)
                    {
                        UInt32 __t__ = roomids[__i__];
                        if (!CProtocolHelp.Write(ref __buff__, ref __used__, __t__))
                        {
                            return(false);
                        }
                    }
                }
                else
                {
                    return(false);
                }
            }


            return(true);
        }
Beispiel #14
0
        public bool decode(byte [] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Read(__buff__, ref __used__, ref count))
            {
                return(false);
            }


            {
                for (int __i__ = 0; __i__ < count; ++__i__)
                {
                    SObjectAction __t__ = new SObjectAction();
                    if (!__t__.decode(__buff__, ref __used__))
                    {
                        return(false);
                    }
                    a[__i__] = __t__;
                }
            }


            return(true);
        }
Beispiel #15
0
        public bool decode(byte [] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Read(__buff__, ref __used__, ref idx))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref time))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload1))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload2))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload3))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload4))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload5))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload6))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload7))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload8))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload9))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref payload10))
            {
                return(false);
            }


            return(true);
        }
Beispiel #16
0
        public bool encode(ref byte[] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Write(ref __buff__, ref __used__, userid))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, guid))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, showLevel))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, mateid))
            {
                return(false);
            }



            {
                short __s__ = (short)macAddress.Length;
                if (CProtocolHelp.Write(ref __buff__, ref __used__, __s__))
                {
                    if (!CProtocolHelp.Write(ref __buff__, ref __used__, __s__, macAddress))
                    {
                        return(false);
                    }
                }
                else
                {
                    return(false);
                }
            }


            {
                short __s__ = (short)rolename.Length;
                if (CProtocolHelp.Write(ref __buff__, ref __used__, __s__))
                {
                    if (!CProtocolHelp.Write(ref __buff__, ref __used__, __s__, rolename))
                    {
                        return(false);
                    }
                }
                else
                {
                    return(false);
                }
            }


            if (!CProtocolHelp.Write(ref __buff__, ref __used__, level))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, professionId))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, exp))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, popularity))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, expTotal))
            {
                return(false);
            }



            {
                if (__used__ + sizeof(Int32) * 2 <= __buff__.Length)
                {
                    for (int __i__ = 0; __i__ < 2; ++__i__)
                    {
                        Int32 __t__ = diamond[__i__];
                        if (!CProtocolHelp.Write(ref __buff__, ref __used__, __t__))
                        {
                            return(false);
                        }
                    }
                }
                else
                {
                    return(false);
                }
            }


            if (!CProtocolHelp.Write(ref __buff__, ref __used__, money))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, exploit))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, vigor))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, vigorMax))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, leaderForce))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, killingValue))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, halliconId))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, f))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, te))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, tes))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, c))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, uc))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, ll))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, ull))
            {
                return(false);
            }



            return(true);
        }
Beispiel #17
0
        public bool decode(byte [] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Read(__buff__, ref __used__, ref userid))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref guid))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref showLevel))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref mateid))
            {
                return(false);
            }


            {
                short __s__ = 0;
                if (CProtocolHelp.Read(__buff__, ref __used__, ref __s__))
                {
                    if (!CProtocolHelp.Read(__buff__, ref __used__, __s__, ref macAddress))
                    {
                        return(false);
                    }
                }
                else
                {
                    return(false);
                }
            }


            {
                short __s__ = 0;
                if (CProtocolHelp.Read(__buff__, ref __used__, ref __s__))
                {
                    if (!CProtocolHelp.Read(__buff__, ref __used__, __s__, ref rolename))
                    {
                        return(false);
                    }
                }
                else
                {
                    return(false);
                }
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref level))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref professionId))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref exp))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref popularity))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref expTotal))
            {
                return(false);
            }


            {
                if (__used__ + sizeof(Int32) * 2 <= __buff__.Length)
                {
                    for (int __i__ = 0; __i__ < 2; ++__i__)
                    {
                        Int32 __t__ = 0;
                        if (!CProtocolHelp.Read(__buff__, ref __used__, ref __t__))
                        {
                            return(false);
                        }
                        diamond[__i__] = __t__;
                    }
                }
                else
                {
                    return(false);
                }
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref money))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref exploit))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref vigor))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref vigorMax))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref leaderForce))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref killingValue))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref halliconId))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref f))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref te))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref tes))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref c))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref uc))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref ll))
            {
                return(false);
            }


            if (!CProtocolHelp.Read(__buff__, ref __used__, ref ull))
            {
                return(false);
            }


            return(true);
        }
Beispiel #18
0
        public bool encode(ref byte[] __buff__, ref int __used__)
        {
            if (!CProtocolHelp.Write(ref __buff__, ref __used__, idx))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, time))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload1))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload2))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload3))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload4))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload5))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload6))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload7))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload8))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload9))
            {
                return(false);
            }



            if (!CProtocolHelp.Write(ref __buff__, ref __used__, payload10))
            {
                return(false);
            }



            return(true);
        }