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.

27 lines
735 B
C#

using DotNetCTFDumper.Utils;
namespace DotNetCTFDumper.MMFParser.ChunkLoaders.Events.Parameters
{
class Create : ParameterCommon
{
public int ObjectInstances;
public int ObjectInfo;
public Position Position;
public Create(ByteReader reader) : base(reader) { }
public override void Read()
{
Position = new Position(Reader);
Position.Read();
ObjectInstances = Reader.ReadUInt16();
ObjectInfo = Reader.ReadUInt16();
}
public override string ToString()
{
return $"Create obj instance:{ObjectInstances} info:{ObjectInfo} pos:({Position.ToString()})";
}
}
}