Fix terrain positions for targets not being serialized for Orders
This commit is contained in:
@@ -288,7 +288,8 @@ namespace OpenRA.Traits
|
||||
|
||||
// Expose internal state for serialization by the orders code *only*
|
||||
internal static Target FromSerializedActor(Actor a, int generation) { return a != null ? new Target(a, generation) : Invalid; }
|
||||
internal (TargetType Type, Actor Actor, int Generation, CPos? Cell, SubCell? SubCell, WPos Pos) SerializableState =>
|
||||
(type, Actor, generation, cell, subCell, terrainCenterPosition);
|
||||
internal static Target FromSerializedTerrainPosition(WPos centerPosition, WPos[] terrainPositions) { return new Target(centerPosition, terrainPositions); }
|
||||
internal (TargetType Type, Actor Actor, int Generation, CPos? Cell, SubCell? SubCell, WPos Pos, WPos[] TerrainPositions) SerializableState =>
|
||||
(type, Actor, generation, cell, subCell, terrainCenterPosition, terrainPositions);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user