Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
igorseabra4 committed Oct 17, 2018
1 parent e7266ea commit e4e2b0e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using HipHopFile;
using SharpDX;
using System.ComponentModel;

namespace IndustrialPark
{
Expand All @@ -13,210 +14,245 @@ public class AssetPLAT : PlaceableAsset

public AssetPLAT(Section_AHDR AHDR) : base(AHDR) { }

[Category("Platform")]
public byte PlatformType
{
get => ReadByte(0x54 + Offset);
set => Write(0x54 + Offset, value);
}

[Category("Platform")]
public byte UnknownByte_55
{
get => ReadByte(0x55 + Offset);
set => Write(0x55 + Offset, value);
}

[Category("Platform")]
public short CollisionType
{
get => ReadShort(0x56 + Offset);
set => Write(0x56 + Offset, value);
}

public float UnknownFloat_58
[Category("Platform")]
public float MaybeLaunchStrength
{
get => ReadFloat(0x58 + Offset);
set => Write(0x58 + Offset, value);
}

[Category("Platform")]
public float TeeterRotationAngle
{
get => MathUtil.RadiansToDegrees(ReadFloat(0x54 + Offset));
set => Write(0x60 + Offset, MathUtil.DegreesToRadians(value));
get => MathUtil.RadiansToDegrees(ReadFloat(0x5C + Offset));
set => Write(0x5C + Offset, MathUtil.DegreesToRadians(value));
}

[Category("Platform")]
public float TeeterRotationSpeed
{
get => ReadFloat(0x60 + Offset);
set => Write(0x60 + Offset, value);
}

[Category("Platform")]
public float UnknownFloat_64
{
get => ReadFloat(0x64 + Offset);
set => Write(0x64 + Offset, value);
}

[Category("Platform")]
public AssetID ANIM_AssetID_1
{
get => ReadUInt(0x68 + Offset);
set => Write(0x68 + Offset, value);
}

[Category("Platform")]
public AssetID ANIM_AssetID_2
{
get => ReadUInt(0x6C + Offset);
set => Write(0x6C + Offset, value);
}

[Category("Platform")]
public float UnknownFloat_70
{
get => ReadFloat(0x70 + Offset);
set => Write(0x70 + Offset, value);
}

[Category("Platform")]
public float LaunchDirectionX
{
get => ReadFloat(0x74 + Offset);
set => Write(0x74 + Offset, value);
}

[Category("Platform")]
public float LaunchDirectionY
{
get => ReadFloat(0x78 + Offset);
set => Write(0x78 + Offset, value);
}

[Category("Platform")]
public float LaunchDirectionZ
{
get => ReadFloat(0x7C + Offset);
set => Write(0x7C + Offset, value);
}

[Category("Platform")]
public int MovementLockMode
{
get => ReadInt(0x80 + Offset);
set => Write(0x80 + Offset, value);
}

[Category("Platform")]
public float UnknownFloat_84
{
get => ReadFloat(0x84 + Offset);
set => Write(0x84 + Offset, value);
}

[Category("Platform")]
public float UnknownFloat_88
{
get => ReadFloat(0x88 + Offset);
set => Write(0x88 + Offset, value);
}

[Category("Platform")]
public float UnknownFloat_8C
{
get => ReadFloat(0x8C + Offset);
set => Write(0x8C + Offset, value);
}

[Category("Platform")]
public byte UnknownByte_90
{
get => ReadByte(0x90 + Offset);
set => Write(0x90 + Offset, value);
}

[Category("Platform")]
public byte UnknownByte_91
{
get => ReadByte(0x91 + Offset);
set => Write(0x91 + Offset, value);
}

[Category("Platform")]
public byte UnknownByte_92
{
get => ReadByte(0x92 + Offset);
set => Write(0x92 + Offset, value);
}

[Category("Platform")]
public byte UnknownByte_93
{
get => ReadByte(0x93 + Offset);
set => Write(0x93 + Offset, value);
}

[Category("Platform")]
public byte UnknownByte_94
{
get => ReadByte(0x94 + Offset);
set => Write(0x94 + Offset, value);
}

[Category("Platform")]
public byte UnknownByte_95
{
get => ReadByte(0x95 + Offset);
set => Write(0x95 + Offset, value);
}

[Category("Platform")]
public byte UnknownByte_96
{
get => ReadByte(0x96 + Offset);
set => Write(0x96 + Offset, value);
}

[Category("Platform")]
public byte UnknownByte_97
{
get => ReadByte(0x97 + Offset);
set => Write(0x97 + Offset, value);
}

public float MovementTranslationDistance
[Category("Platform")]
public float MovementTranslation_Distance
{
get => ReadFloat(0x98 + Offset);
set => Write(0x98 + Offset, value);
}

public float MovementTranslationTime
[Category("Platform")]
public float MovementTranslation_Time
{
get => ReadFloat(0x9C + Offset);
set => Write(0x9C + Offset, value);
}

public float MovementTranslationUnknownA0
[Category("Platform")]
public float MovementTranslation_UnknownA0
{
get => ReadFloat(0xA0 + Offset);
set => Write(0xA0 + Offset, value);
}

public float MovementTranslationUnknownA4
[Category("Platform")]
public float MovementTranslation_UnknownA4
{
get => ReadFloat(0xA4 + Offset);
set => Write(0xA4 + Offset, value);
}

public float MovementRotationDegrees
[Category("Platform")]
public float MovementRotation_Degrees
{
get => ReadFloat(0xA8 + Offset);
set => Write(0xA8 + Offset, value);
}

public float MovementRotationTime
[Category("Platform")]
public float MovementRotation_Time
{
get => ReadFloat(0xAC + Offset);
set => Write(0xAC + Offset, value);
}

public float MovementRotationUnknownB0
[Category("Platform")]
public float MovementRotation_UnknownB0
{
get => ReadFloat(0xB0 + Offset);
set => Write(0xB0 + Offset, value);
}

public float MovementRotationUnknownB4
[Category("Platform")]
public float MovementRotation_UnknownB4
{
get => ReadFloat(0xB4 + Offset);
set => Write(0xB4 + Offset, value);
}

[Category("Platform")]
public float MovementEndPointTime
{
get => ReadFloat(0xB8 + Offset);
set => Write(0xB8 + Offset, value);
}

[Category("Platform")]
public float MovementStartPointTime
{
get => ReadFloat(0xBC + Offset);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class AssetVIL : PlaceableAsset

public AssetVIL(Section_AHDR AHDR) : base(AHDR) { }

public int Unknown1
public int Unknown54
{
get => ReadInt(0x54 + Offset);
set => Write(0x54 + Offset, value);
Expand Down

0 comments on commit e4e2b0e

Please sign in to comment.