32 lines
843 B
C#
32 lines
843 B
C#
using NetMFAPatcher.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace NetMFAPatcher.MMFParser.ChunkLoaders.Events.Parameters
|
|
{
|
|
class Create : ParameterCommon
|
|
{
|
|
public int ObjectInstances;
|
|
public int ObjectInfo;
|
|
public Position Position;
|
|
|
|
public Create(ByteIO 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()})";
|
|
}
|
|
}
|
|
}
|