Remove conversions between legacy and world types.
This commit is contained in:
@@ -113,11 +113,11 @@ namespace OpenRA
|
||||
if (TargetActor != null)
|
||||
w.Write(UIntFromActor(TargetActor));
|
||||
if (TargetLocation != CPos.Zero)
|
||||
w.Write(TargetLocation.ToInt2());
|
||||
w.Write(TargetLocation);
|
||||
if (TargetString != null)
|
||||
w.Write(TargetString);
|
||||
if (ExtraLocation != CPos.Zero)
|
||||
w.Write(ExtraLocation.ToInt2());
|
||||
w.Write(ExtraLocation);
|
||||
if (ExtraData != 0)
|
||||
w.Write(ExtraData);
|
||||
|
||||
|
||||
@@ -58,5 +58,11 @@ namespace OpenRA.Network
|
||||
w.Write(p.X);
|
||||
w.Write(p.Y);
|
||||
}
|
||||
|
||||
public static void Write(this BinaryWriter w, CPos cell)
|
||||
{
|
||||
w.Write(cell.X);
|
||||
w.Write(cell.Y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user