internal UnitPosition(BinaryReader reader) { Id = new UnitId(reader.ReadUInt32()); X = reader.ReadSingle(); Y = reader.ReadSingle(); Frame = reader.ReadUInt32(); Moving = reader.ReadBoolean(); }
public UnitPosition(UnitId id, float x, float y, uint frame, bool moving) { Id = id; X = x; Y = y; Frame = frame; Moving = moving; }