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.
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()})";
|
|
}
|
|
}
|
|
}
|