Exemplo n.º 1
0
 public CTextureArray(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     rawfile = new CBytes(cr2w, this, nameof(rawfile))
     {
         IsSerialized = true
     };
 }
Exemplo n.º 2
0
 public CBitmapTexture(CR2WFile cr2w) : base(cr2w)
 {
     unk = new CUInt32(cr2w)
     {
         Name = "unk"
     };
     MipsCount = new CUInt32(cr2w)
     {
         Name = "MipsCount"
     };
     Mipdata = new CCompressedBuffer <SMipData>(cr2w, _ => new SMipData(_))
     {
         Name = "Mipdata"
     };
     unk2 = new CUInt32(cr2w)
     {
         Name = "unk2"
     };
     Mips = new CCompressedBuffer <CByteArray>(cr2w, _ => new CByteArray(_))
     {
         Name = "mips"
     };
     ResidentmipSize = new CUInt32(cr2w)
     {
         Name = "filesize"
     };
     Residentmip = new CBytes(cr2w)
     {
         Name = "Image"
     };
 }
Exemplo n.º 3
0
 public SBlockData(CR2WFile cr2w) :
     base(cr2w)
 {
     rotationMatrix = new CMatrix3x3(cr2w)
     {
         Name = "rotationMatrix"
     };
     position = new CVector3D(cr2w)
     {
         Name = "position"
     };
     streamingRadius = new CUInt16(cr2w)
     {
         Name = "streamingRadius"
     };
     flags = new CUInt16(cr2w)
     {
         Name = "flags"
     };
     occlusionSystemID = new CUInt32(cr2w)
     {
         Name = "occlusionSystemID"
     };
     resourceIndex = new CUInt32(cr2w)
     {
         Name = "resourceIndex"
     };
     tail = new CBytes(cr2w)
     {
         Name = "tail"
     };
 }
Exemplo n.º 4
0
 public CCubeTexture(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     Rawfile = new CBytes(cr2w, this, "Image")
     {
         IsSerialized = true
     };
 }
Exemplo n.º 5
0
 public CIndexed2dArray(CR2WFile cr2w) : base(cr2w)
 {
     arrays = new CBytes(cr2w)
     {
         Name = "Serialized data"
     };
 }
Exemplo n.º 6
0
        public CBitmapTexture(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
        {
            MipsCount = new CUInt32(cr2w, this, nameof(MipsCount))
            {
                IsSerialized = true
            };
            Mipdata = new CCompressedBuffer <SMipData>(cr2w, this, nameof(Mipdata))
            {
                IsSerialized = true
            };
            unk1 = new CUInt16(cr2w, this, nameof(unk1))
            {
                IsSerialized = true
            };
            unk2 = new CUInt16(cr2w, this, nameof(unk2))
            {
                IsSerialized = true
            };

            ResidentmipSize = new CUInt32(cr2w, this, nameof(ResidentmipSize))
            {
                IsSerialized = true
            };
            Residentmip = new CBytes(cr2w, this, nameof(Residentmip))
            {
                IsSerialized = true
            };
        }
Exemplo n.º 7
0
 public CSwarmCellMap(CR2WFile cr2w) : base(cr2w)
 {
     data = new CBytes(cr2w)
     {
         Name = "Data"
     };
     cornerPosition = new CVector3D(cr2w)
     {
         Name = "Corner position"
     };
     dataSizeX = new CInt32(cr2w)
     {
         Name = "Data size X"
     };
     dataSizeY = new CInt32(cr2w)
     {
         Name = "Data size Y"
     };
     dataSizeZ = new CInt32(cr2w)
     {
         Name = "Data size Z"
     };
     dataSize = new CInt32(cr2w)
     {
         Name = "Data size in bits"
     };
     sizeInKbytes = new CFloat(cr2w)
     {
         Name = "Data size in Kilobytes"
     };
 }
Exemplo n.º 8
0
        public CBitmapTexture(CR2WFile cr2w) : base(cr2w)
        {
            unk = new CUInt32(cr2w)
            {
                Name = "unk"
            };
            MipsCount = new CUInt32(cr2w)
            {
                Name = "MipsCount"
            };
            mips = new CCompressedBuffer <CVector3 <CUInt32> >(cr2w, _ => new CVector3 <CUInt32>(_, x => new CUInt32(x)))
            {
                Name = "mips"
            };
            filesize = new CUInt32(cr2w)
            {
                Name = "filesize"
            };
            unk2 = new CUInt32(cr2w)
            {
                Name = "unk2"
            };

            Image = new CBytes(cr2w)
            {
                Name = "Image"
            };
        }
Exemplo n.º 9
0
 public CGenericGrassMask(CR2WFile cr2w) : base(cr2w)
 {
     grassmask = new CBytes(cr2w)
     {
         Name  = "Grass mask data",
         Bytes = new byte[0]
     };
 }
Exemplo n.º 10
0
 public CGenericGrassMask(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     grassmask = new CBytes(cr2w, this, nameof(grassmask))
     {
         Bytes        = new byte[0],
         IsSerialized = true
     };
 }
Exemplo n.º 11
0
        public override void Read(BinaryReader file, uint size)
        {
            Buffer = new CBytes(cr2w, this, nameof(Buffer))
            {
                Bytes        = new byte[0],
                IsSerialized = true
            };

            Buffer.Read(file, size);
        }
Exemplo n.º 12
0
 public SMeshBlock5(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     bytesize = new CUInt16(cr2w, this, nameof(bytesize))
     {
         IsSerialized = true
     };
     unk1 = new CBytes(cr2w, this, nameof(unk1))
     {
         IsSerialized = true
     };
 }
Exemplo n.º 13
0
 public SMeshBlock5(CR2WFile cr2w) :
     base(cr2w)
 {
     bytesize = new CUInt16(cr2w)
     {
         Name = "size"
     };
     unk1 = new CBytes(cr2w)
     {
         Name = "unk1"
     };
 }
Exemplo n.º 14
0
 public EntityHandle(CR2WFile cr2w) : base(cr2w)
 {
     id = new CUInt16(cr2w)
     {
         Name = "id"
     };
     guid = new CGUID(cr2w)
     {
         Name = "guid"
     };
     unk1 = new CBytes(cr2w)
     {
         Name = "unk1", Bytes = Array.Empty <byte>()
     };
 }
Exemplo n.º 15
0
 public CPhysicalCollision(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     Unk1 = new CUInt32(cr2w, this, nameof(Unk1))
     {
         IsSerialized = true
     };
     Data = new CBytes(cr2w, this, nameof(Data))
     {
         IsSerialized = true
     };
     Collisiontypes = new CBufferVLQInt32 <CName>(cr2w, this, nameof(Collisiontypes))
     {
         IsSerialized = true
     };
 }
Exemplo n.º 16
0
 public CPhysicalCollision(CR2WFile cr2w) :
     base(cr2w)
 {
     Unk1 = new CUInt32(cr2w)
     {
         Name = nameof(Unk1)
     };
     Data = new CBytes(cr2w)
     {
         Name = nameof(Data)
     };
     Collisiontypes = new CBufferVLQ <CName>(cr2w, _ => new CName(_))
     {
         Name = nameof(Collisiontypes)
     };
 }
Exemplo n.º 17
0
        public CTextureArray(CR2WFile cr2w) : base(cr2w)
        {
            texturecachekey = new CUInt32(cr2w)
            {
                Name = "texturecachekey"
            };
            encodedformat = new CUInt16(cr2w)
            {
                Name = "encodedformat"
            };
            width = new CUInt16(cr2w) // or width
            {
                Name = "width"
            };
            height = new CUInt16(cr2w) // or height
            {
                Name = "height"
            };
            slices = new CUInt16(cr2w) // ?
            {
                Name = "slices"
            };
            mipmapscount = new CUInt16(cr2w)
            {
                Name = "mipmapscount"
            };
            residentmip = new CUInt16(cr2w) //?
            {
                Name = "residentmip"
            };

            filesize = new CUInt32(cr2w)
            {
                Name = "filesize"
            };
            ffffffff = new CInt32(cr2w)
            {
                Name = "ffffffff"
            };

            rawfile = new CBytes(cr2w)
            {
                Name = "rawfile"
            };
        }
Exemplo n.º 18
0
 public CCameraCompressedPose(CR2WFile cr2w)
     : base(cr2w)
 {
     bytes1 = new CBytes(cr2w)
     {
         Name = nameof(bytes1)
     };
     float1 = new CFloat(cr2w)
     {
         Name = nameof(float1)
     };
     float2 = new CFloat(cr2w)
     {
         Name = nameof(float2)
     };
     bytes2 = new CBytes(cr2w)
     {
         Name = nameof(bytes2)
     };
 }
Exemplo n.º 19
0
 public CSwarmCellMap(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     Data = new CBytes(cr2w, this, nameof(Data))
     {
         IsSerialized = true
     };
     CornerPositionX = new CFloat(cr2w, this, nameof(CornerPositionX))
     {
         IsSerialized = true
     };
     CornerPositionY = new CFloat(cr2w, this, nameof(CornerPositionY))
     {
         IsSerialized = true
     };
     CornerPositionZ = new CFloat(cr2w, this, nameof(CornerPositionZ))
     {
         IsSerialized = true
     };
     DataSizeX = new CInt32(cr2w, this, nameof(DataSizeX))
     {
         IsSerialized = true
     };
     DataSizeY = new CInt32(cr2w, this, nameof(DataSizeY))
     {
         IsSerialized = true
     };
     DataSizeZ = new CInt32(cr2w, this, nameof(DataSizeZ))
     {
         IsSerialized = true
     };
     DataSizeBits = new CInt32(cr2w, this, nameof(DataSizeBits))
     {
         IsSerialized = true
     };
     SizeInKbytes = new CFloat(cr2w, this, nameof(SizeInKbytes))
     {
         IsSerialized = true
     };
 }
Exemplo n.º 20
0
        public CCubeTexture(CR2WFile cr2w) : base(cr2w)
        {
            texturecachekey = new CUInt32(cr2w)
            {
                Name = "texturecachekey"
            };
            residentmip = new CUInt16(cr2w)
            {
                Name = "residentmip"
            };
            encodedformat = new CUInt16(cr2w)
            {
                Name = "encodedformat"
            };
            edge = new CUInt16(cr2w)
            {
                Name = "edge"
            };
            mipmapscount = new CUInt16(cr2w)
            {
                Name = "mipmapscount"
            };

            filesize = new CUInt32(cr2w)
            {
                Name = "filesize"
            };
            ffffffff = new CInt32(cr2w)
            {
                Name = "ffffffff"
            };

            rawfile = new CBytes(cr2w)
            {
                Name = "rawfile"
            };
        }
Exemplo n.º 21
0
 public EntityHandle(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     id   = new CUInt16(cr2w, this, nameof(id));
     guid = new CGUID(cr2w, this, nameof(guid));
     unk1 = new CBytes(cr2w, this, nameof(unk1));
 }
Exemplo n.º 22
0
 public SBlockDataMeshObject(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     unk1 = new CBytes(cr2w, parent, nameof(unk1));
 }
Exemplo n.º 23
0
 public CClipMapCookedData(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     Data = new CBytes(cr2w, this, nameof(Data));
 }
Exemplo n.º 24
0
 public SAppearanceAttachment(CR2WFile cr2w)
     : base(cr2w)
 {
     bytes      = new CBytes(cr2w);
     bytes.Name = "unknownBytes";
 }