コード例 #1
0
 public StructQuat(ArkArchive archive, ArkName structType) : base(structType)
 {
     X = archive.GetFloat();
     Y = archive.GetFloat();
     Z = archive.GetFloat();
     W = archive.GetFloat();
 }
コード例 #2
0
 public StructLinearColor(ArkArchive archive, ArkName structType) : base(structType)
 {
     R = archive.GetFloat();
     G = archive.GetFloat();
     B = archive.GetFloat();
     A = archive.GetFloat();
 }
コード例 #3
0
        public ArkArrayFloat(ArkArchive archive, int dataSize)
        {
            var size = archive.GetInt();

            for (int n = 0; n < size; n++)
            {
                Add(archive.GetFloat());
            }
        }
コード例 #4
0
        public PropertyFloat(ArkArchive archive, PropertyArgs args, bool propertyIsExcluded = false) : base(archive, args, propertyIsExcluded)
        {
            if (propertyIsExcluded)
            {
                archive.Position += 4;
                return;
            }

            _value = archive.GetFloat();
        }
コード例 #5
0
        //public long Size
        //{
        //    get
        //    {
        //        return Float.BYTES * 6;
        //    }
        //}

        public void read(ArkArchive archive)
        {
            X     = archive.GetFloat();
            Y     = archive.GetFloat();
            Z     = archive.GetFloat();
            Pitch = archive.GetFloat();
            Yaw   = archive.GetFloat();
            Roll  = archive.GetFloat();
        }
コード例 #6
0
 public StructVector2d(ArkArchive archive, ArkName structType) : base(structType)
 {
     X = archive.GetFloat();
     Y = archive.GetFloat();
 }
コード例 #7
0
 public PropertyFloat(ArkArchive archive, PropertyArgs args) : base(archive, args)
 {
     _value = archive.GetFloat();
 }