Ejemplo n.º 1
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"
     };
 }
Ejemplo n.º 2
0
 public CStorySceneScript(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     BufferParameters = new CCompressedBuffer <CVariant>(cr2w, this, nameof(BufferParameters))
     {
         IsSerialized = true
     };
 }
Ejemplo n.º 3
0
 public CSkeleton(CR2WFile cr2w) : base(cr2w)
 {
     rigdata = new CCompressedBuffer <SSkeletonRigData>(cr2w, _ => new SSkeletonRigData(_))
     {
         Name = "rigdata"
     };
 }
Ejemplo n.º 4
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"
            };
        }
Ejemplo n.º 5
0
 public CSkeleton(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     rigdata = new CCompressedBuffer <SSkeletonRigData>(cr2w, this, nameof(rigdata))
     {
         IsSerialized = true
     };
 }
Ejemplo n.º 6
0
        public CSectorData(CR2WFile cr2w)
            : base(cr2w)
        {
            Unknown1 = new CUInt32(cr2w)
            {
                Name = "unknown1",
            };
            Unknown2 = new CUInt32(cr2w)
            {
                Name = "unknown2",
            };
            blocksize = new CVLQInt32(cr2w)
            {
                Name = "blocksize",
            };

            Resources = new CBufferVLQ <CSectorDataResource>(cr2w, _ => new CSectorDataResource(_))
            {
                Name = "resources",
            };
            Objects = new CBufferVLQ <CSectorDataObject>(cr2w, _ => new CSectorDataObject(_))
            {
                Name = "objects",
            };

            BlockData = new CCompressedBuffer <SBlockData>(cr2w, _ => new SBlockData(_))
            {
                Name = "blockData",
            };
        }
Ejemplo n.º 7
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
            };
        }
Ejemplo n.º 8
0
 public CSectorData(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     blocksize = new CVLQInt32(cr2w, this, nameof(blocksize))
     {
         IsSerialized = true
     };
     BlockData = new CCompressedBuffer <SBlockData>(cr2w, this, nameof(BlockData))
     {
         IsSerialized = true
     };
 }
Ejemplo n.º 9
0
 public CurvePiece(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     // This has a fixed size in memory, but for some reason file format is allowed to not provide all,
     // leaving the rest to zero values. Possibly has individual fields instead of an array.
     values = new CCompressedBuffer <CFloat>(cr2w, this, nameof(values))
     {
         IsSerialized = true
     };
     valueCount = new CUInt16(cr2w, this, "count")
     {
         val = 16, IsSerialized = true
     };
 }
Ejemplo n.º 10
0
 public CEntity(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     Components = new CArray <CPtr <CComponent> >(cr2w, this, nameof(Components))
     {
         IsSerialized = true, Elementtype = "ptr:CComponent"
     };
     BufferV1 = new CCompressedBuffer <SEntityBufferType1>(cr2w, this, nameof(BufferV1))
     {
         IsSerialized = true
     };
     BufferV2 = new CBufferUInt32 <SEntityBufferType2>(cr2w, this, nameof(BufferV2))
     {
         IsSerialized = true
     };
 }
Ejemplo n.º 11
0
        }                                                                            // MAX LIMIT 4

        public CurveInfo(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
        {
            someName = new CName(cr2w, this, nameof(someName))
            {
                IsSerialized = true
            };
            someByte = new CUInt8(cr2w, this, nameof(someByte))
            {
                IsSerialized = true
            };
            pieces = new CCompressedBuffer <CurvePiece>(cr2w, this, nameof(pieces))
            {
                IsSerialized = true
            };
        }
Ejemplo n.º 12
0
 public CFXTrackItem(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     buffername = new CName(cr2w, this, nameof(buffername))
     {
         IsSerialized = true
     };
     count = new CDynamicInt(cr2w, this, nameof(count))
     {
         IsSerialized = true
     };
     unk = new CUInt8(cr2w, this, nameof(unk))
     {
         IsSerialized = true
     };
     buffer = new CCompressedBuffer <CBufferUInt16 <CFloat> >(cr2w, this, nameof(buffer))
     {
         IsSerialized = true
     };
 }
Ejemplo n.º 13
0
 public CWayPointsCollection(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     Waypoints = new CCompressedBuffer <SBufferWaypoints>(cr2w, this, nameof(Waypoints))
     {
         IsSerialized = true
     };
     ComponentsMappings = new CCompressedBuffer <SBufferComponentsMappings>(cr2w, this, nameof(ComponentsMappings))
     {
         IsSerialized = true
     };
     WaypointsGroups = new CCompressedBuffer <SBufferwaypointsGroup>(cr2w, this, nameof(WaypointsGroups))
     {
         IsSerialized = true
     };
     Indexes = new CCompressedBuffer <CUInt16>(cr2w, this, nameof(Indexes))
     {
         IsSerialized = true
     };
 }
Ejemplo n.º 14
0
 public CFXTrackItem(CR2WFile cr2w) :
     base(cr2w)
 {
     buffername = new CName(cr2w)
     {
         Name = "buffername"
     };
     count = new CDynamicInt(cr2w)
     {
         Name = "count"
     };
     unk = new CUInt8(cr2w)
     {
         Name = "unk"
     };
     buffer = new CCompressedBuffer <CBufferUInt16 <CFloat> >(cr2w, _ => new CBufferUInt16 <CFloat>(_, x => new CFloat(x)))
     {
         Name = "buffer"
     };
 }
Ejemplo n.º 15
0
 public CWayPointsCollection(CR2WFile cr2w) :
     base(cr2w)
 {
     waypoints = new CCompressedBuffer <SBufferWaypoints>(cr2w, _ => new SBufferWaypoints(_))
     {
         Name = "waypoints"
     };
     componentsMappings = new CCompressedBuffer <SBufferComponentsMappings>(cr2w, _ => new SBufferComponentsMappings(_))
     {
         Name = "componentsMappings"
     };
     waypointsGroups = new CCompressedBuffer <SBufferwaypointsGroup>(cr2w, _ => new SBufferwaypointsGroup(_))
     {
         Name = "waypointsGroups"
     };
     indexes = new CCompressedBuffer <CUInt16>(cr2w, _ => new CUInt16(_))
     {
         Name = "indexes"
     };
 }