You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using DotNetCTFDumper.Utils;
|
|
|
|
namespace DotNetCTFDumper.MMFParser.EXE.Loaders.Events.Parameters
|
|
{
|
|
class Position : ParameterCommon
|
|
{
|
|
public int ObjectInfoParent;
|
|
public int Flags;
|
|
public int X;
|
|
public int Y;
|
|
public int Slope;
|
|
public int Angle;
|
|
public float Direction;
|
|
public int TypeParent;
|
|
public int ObjectInfoList;
|
|
public int Layer;
|
|
|
|
public Position(ByteReader reader) : base(reader) { }
|
|
public override void Read()
|
|
{
|
|
ObjectInfoParent = Reader.ReadInt16();
|
|
Flags = Reader.ReadUInt16();
|
|
X = Reader.ReadInt16();
|
|
Y = Reader.ReadInt16();
|
|
Slope = Reader.ReadInt16();
|
|
Angle = Reader.ReadInt16();
|
|
Direction = Reader.ReadSingle();
|
|
TypeParent = Reader.ReadInt16();
|
|
ObjectInfoList = Reader.ReadInt16();
|
|
Layer = Reader.ReadInt16();
|
|
|
|
|
|
}
|
|
public override string ToString()
|
|
{
|
|
return $"Object X:{X} Y:{Y} Angle:{Angle} Direction:{Direction} Parent:{ObjectInfoList}";
|
|
}
|
|
}
|
|
}
|