Example #1
0
        public static object ReadRoleInfo(uLink.BitStream stream, params object[] codecOptions)
        {
            RoleInfo info = new RoleInfo();

            info.steamId     = stream.Read <ulong>();
            info.level       = stream.Read <byte>();
            info.winrate     = stream.Read <int>();
            info.sex         = stream.Read <byte>();
            info.name        = stream.Read <string>();
            info.deletedFlag = stream.Read <int>();
            info.roleID      = stream.Read <int>();
            info.appearData  = stream.Read <byte[]>();
            info.nudeData    = stream.Read <byte[]>();
            info.lobbyExp    = stream.Read <float>();
            return(info);
        }
Example #2
0
    // BitStream Reader
    public static object ReadFromBitStream(uLink.BitStream stream, params object[] args)
    {
        var obj = new SkillBuild();

        obj.weapons = stream.Read <WeaponBuild[]>();

        return(obj);
    }
Example #3
0
        public static object Deserialize(uLink.BitStream stream, params object[] codecOptions)
        {
            LobbyShopData data = new LobbyShopData();

            data.id       = stream.Read <int>();
            data.itemtype = stream.Read <int>();
            data.price    = stream.Read <int>();
            data.rebate   = stream.Read <int>();
            data.tab      = stream.Read <int>();
            data.bind     = stream.Read <bool>();
            data.bshow    = stream.Read <bool>();
            data.forbid   = stream.Read <int>();
            return(data);
        }
Example #4
0
        public static object Deserialize(uLink.BitStream stream, params object[] codecOptions)
        {
            SceneObject obj = new SceneObject();

            obj._objId      = stream.Read <int>();
            obj._protoId    = stream.Read <int>();
            obj._worldId    = stream.Read <int>();
            obj._type       = stream.Read <ESceneObjType>();
            obj._pos        = stream.Read <Vector3>();
            obj._scale      = stream.Read <Vector3>();
            obj._rot        = stream.Read <Quaternion>();
            obj._scenarioId = stream.Read <int>();

            return(obj);
        }
Example #5
0
        public static object ReadRoleInfoProxy(uLink.BitStream stream, params object[] codecOptions)
        {
            RoleInfoProxy info = new RoleInfoProxy();

            info.steamId  = stream.Read <ulong>();
            info.level    = stream.Read <byte>();
            info.winrate  = stream.Read <int>();
            info.roleID   = stream.Read <int>();
            info.sex      = stream.Read <byte>();
            info.name     = stream.Read <string>();
            info.lobbyExp = stream.Read <float>();
            return(info);
        }
Example #6
0
        public static object Deserialize(uLink.BitStream stream, params object[] codecOptions)
        {
            var creation = new CreationOriginData();

            creation.SteamId  = stream.Read <ulong> ();
            creation.ObjectID = stream.Read <int>();
            creation.HashCode = stream.Read <ulong>();
            creation.Seed     = stream.Read <int>();
            creation.Fuel     = stream.Read <float>();
            creation.HP       = stream.Read <float>();
            return(creation);
        }