Exemplo n.º 1
0
 public override void ReadStruct(IOMemoryStream ms, UAssetFile f, StructProperty s)
 {
     r = ms.ReadFloat();
     g = ms.ReadFloat();
     b = ms.ReadFloat();
     a = ms.ReadFloat();
 }
 public ArkStructLinearColor(IOMemoryStream ms, ArkClassName structType)
 {
     r = ms.ReadFloat();
     g = ms.ReadFloat();
     b = ms.ReadFloat();
     a = ms.ReadFloat();
 }
Exemplo n.º 3
0
 public override void ReadStruct(IOMemoryStream ms, UAssetFile f, StructProperty s)
 {
     x = ms.ReadFloat();
     y = ms.ReadFloat();
     z = ms.ReadFloat();
     w = ms.ReadFloat();
 }
Exemplo n.º 4
0
 public ArkStructQuat(IOMemoryStream ms, ArkClassName structType)
 {
     x = ms.ReadFloat();
     y = ms.ReadFloat();
     z = ms.ReadFloat();
     w = ms.ReadFloat();
 }
Exemplo n.º 5
0
        void ReadHeader()
        {
            saveVersion = ms.ReadShort(); //Game version. Important for later.
            //Depending on the version, read this in
            switch (saveVersion)
            {
            case 5:
                ark.gameTime = ms.ReadFloat();
                break;

            case 6:
                nameTableOffset       = ms.ReadInt();
                propertiesBlockOffset = ms.ReadInt();
                ark.gameTime          = ms.ReadFloat();
                break;

            case 7:
            case 8:
                binaryDataTableOffset = ms.ReadInt();
                unknownData1          = ms.ReadInt();
                nameTableOffset       = ms.ReadInt();
                propertiesBlockOffset = ms.ReadInt();
                ark.gameTime          = ms.ReadFloat();
                break;

            case 9:
                binaryDataTableOffset = ms.ReadInt();
                unknownData1          = ms.ReadInt();
                nameTableOffset       = ms.ReadInt();
                propertiesBlockOffset = ms.ReadInt();
                ark.gameTime          = ms.ReadFloat();
                saveCount             = ms.ReadInt();
                break;

            default:
                throw new Exception($"Unknown game version {saveVersion.ToString()}, expected 5-9.");
            }
        }
Exemplo n.º 6
0
 public override void Read(IOMemoryStream ms, UAssetFile f)
 {
     data = ms.ReadFloat();
 }
Exemplo n.º 7
0
 public override void Read(IOMemoryStream ms)
 {
     value = ms.ReadFloat();
 }
 public InlineFloatProperty(IOMemoryStream ms) : base(ms)
 {
     value = ms.ReadFloat();
 }