Exemplo n.º 1
0
        public static RestrictionDBTable read(BinaryReader binaryReader)
        {
            RestrictionDBTable newObj = new RestrictionDBTable();

            newObj.char_object_id           = binaryReader.ReadUInt32();
            newObj._item_storage_permission = binaryReader.ReadInt32();
            return(newObj);
        }
Exemplo n.º 2
0
        public static RestrictionDBTable read(BinaryReader binaryReader)
        {
            RestrictionDBTable newObj = new RestrictionDBTable();
            var startPosition         = binaryReader.BaseStream.Position;

            newObj.char_object_id           = binaryReader.ReadUInt32();
            newObj._item_storage_permission = binaryReader.ReadInt32();
            newObj.Length = (int)(binaryReader.BaseStream.Position - startPosition);
            return(newObj);
        }
Exemplo n.º 3
0
        public static RestrictionDB read(BinaryReader binaryReader)
        {
            RestrictionDB newObj = new RestrictionDB();

            newObj.version      = binaryReader.ReadUInt32();
            newObj._bitmask     = binaryReader.ReadUInt32();
            newObj._monarch_iid = binaryReader.ReadUInt32();
            newObj._buckets     = binaryReader.ReadUInt16();
            newObj._table_size  = binaryReader.ReadUInt16();
            newObj._table       = new List <RestrictionDBTable>();
            for (int i = 0; i < newObj._buckets; i++)
            {
                newObj._table.Add(RestrictionDBTable.read(binaryReader));
            }
            return(newObj);
        }
Exemplo n.º 4
0
        public static RestrictionDB read(BinaryReader binaryReader)
        {
            RestrictionDB newObj        = new RestrictionDB();
            var           startPosition = binaryReader.BaseStream.Position;

            newObj.version      = binaryReader.ReadUInt32();
            newObj._bitmask     = binaryReader.ReadUInt32();
            newObj._monarch_iid = binaryReader.ReadUInt32();
            newObj._buckets     = binaryReader.ReadUInt16();
            newObj._table_size  = binaryReader.ReadUInt16();
            newObj._table       = new List <RestrictionDBTable>();
            for (int i = 0; i < newObj._buckets; i++)
            {
                newObj._table.Add(RestrictionDBTable.read(binaryReader));
            }
            newObj.Length = (int)(binaryReader.BaseStream.Position - startPosition);
            return(newObj);
        }