Ejemplo n.º 1
0
        //public CUInt16 unk3;
        //public CUInt16 unk4;


        public SCurveData(CR2WFile cr2w) : base(cr2w)
        {
            time = new CFloat(cr2w)
            {
                Name = "x"
            };
            value = new CFloat(cr2w)
            {
                Name = "y"
            };
            controlPoint1 = new CQuaternion(cr2w)
            {
                Name = "controlPoint1"
            };
            controlPoint2 = new CQuaternion(cr2w)
            {
                Name = "controlPoint2"
            };
            curveTypeL = new CUInt32(cr2w)
            {
                Name = "curveTypeL"
            };
            curveTypeR = new CUInt32(cr2w)
            {
                Name = "curveTypeR"
            };
            //unk3 = new CUInt16(cr2w) { Name = "curveTypeL" };
            //unk4 = new CUInt16(cr2w) { Name = "curveTypeR" };
        }
Ejemplo n.º 2
0
 public CSectorData(CR2WFile cr2w)
     : base(cr2w)
 {
     Unknown1 = new CUInt32(cr2w)
     {
         Name = "unknown1",
         Type = "UInt32"
     };
     Unknown2 = new CUInt32(cr2w)
     {
         Name = "unknown2",
         Type = "UInt32"
     };
     Resources = new CVector(cr2w)
     {
         Name = "resources",
         Type = "CSectorDataResource[]"
     };
     Objects = new CVector(cr2w)
     {
         Name = "objects",
         Type = "CSectorDataObject[]"
     };
     BlockData = new CByteArray(cr2w)
     {
         Name = "blockData",
         Type = "byte[]"
     };
 }
Ejemplo n.º 3
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.º 4
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.º 5
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.º 6
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"
     };
 }
Ejemplo n.º 7
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.º 8
0
 public CExtAnimEventsFile(CR2WFile cr2w) :
     base(cr2w)
 {
     unk1 = new CUInt32(cr2w)
     {
         Name = "unk1"
     };
 }
Ejemplo n.º 9
0
 public CEntityTemplate(CR2WFile cr2w) :
     base(cr2w)
 {
     unk1 = new CUInt32(cr2w)
     {
         Name = "unk1"
     };
 }
Ejemplo n.º 10
0
        public override void Write(BinaryWriter file)
        {
            CUInt32 count = new CUInt32(cr2w, null, "")
            {
                val = (uint)elements.Count
            };

            count.Write(file);

            base.Write(file);
        }
Ejemplo n.º 11
0
        public CEntity(CR2WFile cr2w) :
            base(cr2w)
        {
            unk1      = new CUInt32(cr2w);
            unk1.Name = "unk1";
            unk2      = new CUInt32(cr2w);
            unk2.Name = "unk2";

            components      = new CArray("[]handle:Component", "handle:Component", true, cr2w);
            components.Name = "components";
        }
Ejemplo n.º 12
0
 public SSeedKeyValue(CR2WFile cr2w) : base(cr2w)
 {
     key = new CUInt32(cr2w)
     {
         Name = "key", Type = "CUInt32"
     };
     val = new CUInt32(cr2w)
     {
         Name = "val", Type = "CUInt32"
     };
 }
Ejemplo n.º 13
0
 public CCutsceneTemplate(CR2WFile cr2w) :
     base(cr2w)
 {
     unk1 = new CUInt32(cr2w)
     {
         Name = "unk1"
     };
     animevents = new CBufferUInt32 <CVectorWrapper>(cr2w, _ => new CVectorWrapper(_))
     {
         Name = "buffer"
     };
 }
Ejemplo n.º 14
0
 public ShBlendMultipleNodeData(CR2WFile cr2w) :
     base(cr2w)
 {
     index = new CUInt32(cr2w)
     {
         Name = "index"
     };
     blendvalue = new CFloat(cr2w)
     {
         Name = "blendvalue"
     };
 }
Ejemplo n.º 15
0
        public CBehaviorGraph(CR2WFile cr2w) :
            base(cr2w)
        {
            unk1 = new CUInt32(cr2w)
            {
                Name = "unk1"
            };
            unk2 = new CUInt32(cr2w)
            {
                Name = "unk2"
            };
            variables1 = new CBufferUInt32 <IdHandle>(cr2w, _ => new IdHandle(_))
            {
                Name = "variables1"
            };

            unk3 = new CUInt32(cr2w)
            {
                Name = "unk3"
            };
            descriptions = new CBufferVLQ <CHandle>(cr2w, _ => new CHandle(_))
            {
                Name = "descriptions"
            };

            unk4 = new CUInt32(cr2w)
            {
                Name = "unk4"
            };
            vectorvariables1 = new CBufferUInt32 <IdHandle>(cr2w, _ => new IdHandle(_))
            {
                Name = "vectorvariables1"
            };

            unk5 = new CUInt32(cr2w)
            {
                Name = "unk5"
            };
            variables2 = new CBufferUInt32 <IdHandle>(cr2w, _ => new IdHandle(_))
            {
                Name = "variables2"
            };

            unk6 = new CUInt32(cr2w)
            {
                Name = "unk6"
            };
            vectorvariables2 = new CBufferUInt32 <IdHandle>(cr2w, _ => new IdHandle(_))
            {
                Name = "vectorvariables2"
            };
        }
Ejemplo n.º 16
0
        public CSwfResource(CR2WFile cr2w) :
            base(cr2w)
        {
            swfResource = new CByteArray(cr2w)
            {
                Name = "swfResource"
            };

            unk1 = new CUInt32(cr2w)
            {
                Name = "unk1"
            };
        }
Ejemplo n.º 17
0
 public SEntityBufferType2(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     componentName = new CName(cr2w, this, nameof(componentName))
     {
         IsSerialized = true
     };
     sizeofdata = new CUInt32(cr2w, this, nameof(sizeofdata))
     {
         IsSerialized = true
     };
     variables = new CBufferUInt32 <CVariantSizeTypeName>(cr2w, this, nameof(variables))
     {
         IsSerialized = true
     };
 }
Ejemplo n.º 18
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
     };
 }
Ejemplo n.º 19
0
        public override void Read(BinaryReader file, uint size)
        {
            base.Read(file, size);

            //lazy check if Cvariable is first chunk (= resource) or derived
            if (ParentVar != null || this is CSkeletalAnimationSet)
            {
                return;
            }
            Unk1 = new CUInt32(cr2w, this, nameof(Unk1))
            {
                IsSerialized = true
            };
            Unk1.Read(file, size);
        }
Ejemplo n.º 20
0
 public CUmbraScene(CR2WFile cr2w) :
     base(cr2w)
 {
     unk1 = new CUInt32(cr2w)
     {
         Name = nameof(unk1)
     };
     unk2 = new CFloat(cr2w)
     {
         Name = nameof(unk2)
     };
     tiles = new CBufferUInt32 <SUmbraSceneData>(cr2w, _ => new SUmbraSceneData(_))
     {
         Name = nameof(tiles)
     };
 }
Ejemplo n.º 21
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)
     };
 }
Ejemplo n.º 22
0
 public SMipData(CR2WFile cr2w) :
     base(cr2w)
 {
     Width = new CUInt32(cr2w)
     {
         Name = "Width"
     };
     Height = new CUInt32(cr2w)
     {
         Name = "Height"
     };
     Blocksize = new CUInt32(cr2w)
     {
         Name = "Blocksize"
     };
 }
Ejemplo n.º 23
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"
            };
        }
Ejemplo n.º 24
0
 public SBoneIndiceMapping(CR2WFile cr2w) : base(cr2w)
 {
     startingIndex = new CUInt32(cr2w)
     {
         Name = "startingIndex", Type = "CUInt32"
     };
     endingIndex = new CUInt32(cr2w)
     {
         Name = "endingIndex", Type = "CUInt32"
     };
     chunkIndex = new CUInt32(cr2w)
     {
         Name = "chunkIndex", Type = "CUInt32"
     };
     boneIndex = new CUInt32(cr2w)
     {
         Name = "boneIndex", Type = "CUInt32"
     };
 }
Ejemplo n.º 25
0
 public SBufferwaypointsGroup(CR2WFile cr2w) :
     base(cr2w)
 {
     offset = new CUInt32(cr2w)
     {
         Name = "offset"
     };
     count = new CUInt32(cr2w)
     {
         Name = "count"
     };
     nullbytes = new CUInt16(cr2w)
     {
         Name = "nullbytes"
     };
     groupIdx = new CUInt16(cr2w)
     {
         Name = "groupIdx"
     };
 }
Ejemplo n.º 26
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"
            };
        }