コード例 #1
0
 public CSectorDataObject(CR2WFile cr2w)
     : base(cr2w)
 {
     type = new CUInt8(cr2w)
     {
         Name = "type", Type = "UInt8"
     };
     flags = new CUInt8(cr2w)
     {
         Name = "flags", Type = "UInt8"
     };
     radius = new CUInt16(cr2w)
     {
         Name = "radius", Type = "UInt16"
     };
     offset = new CUInt64(cr2w)
     {
         Name = "offset", Type = "UInt64"
     };
     positionX = new CFloat(cr2w)
     {
         Name = "positionX", Type = "Float"
     };
     positionY = new CFloat(cr2w)
     {
         Name = "positionY", Type = "Float"
     };
     positionZ = new CFloat(cr2w)
     {
         Name = "positionZ", Type = "Float"
     };
 }
コード例 #2
0
 public CColor(CR2WFile cr2w, CVariable parent, string name) : base(cr2w, parent, name)
 {
     Red   = new CUInt8(cr2w, this, nameof(Red));
     Green = new CUInt8(cr2w, this, nameof(Green));
     Blue  = new CUInt8(cr2w, this, nameof(Blue));
     Alpha = new CUInt8(cr2w, this, nameof(Alpha));
 }
コード例 #3
0
            public List <CurvePiece> pieces; // MAX LIMIT 4

            public CurveInfo(CR2WFile cr2w) : base(cr2w)
            {
                someName = new CName(cr2w)
                {
                    Name = "someName", Type = "CName"
                };
                someByte = new CUInt8(cr2w)
                {
                    Name = "someByte", Type = "CUInt8"
                };
                pieces = new List <CurvePiece>();
            }
コード例 #4
0
ファイル: CurveInfo.cs プロジェクト: TarekJor/Wolven-kit
        }                                                                            // 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
            };
        }
コード例 #5
0
ファイル: CMaterialGraph.cs プロジェクト: zeta1999/Wolven-kit
 public CMaterialGraphParameter(CR2WFile cr2w)
     : base(cr2w)
 {
     unk1 = new CUInt8(cr2w)
     {
         Name = "Type", Type = "UInt8"
     };
     unk2 = new CUInt8(cr2w)
     {
         Name = "Offset?", Type = "UInt8"
     };
     name = new CName(cr2w)
     {
         Name = "Name", Type = "CName"
     };
 }
コード例 #6
0
ファイル: CFXTrackItem.cs プロジェクト: schiffpa/CP77Tools
 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
     };
 }
コード例 #7
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"
     };
 }