tighten order encoding

This commit is contained in:
Chris Forbes
2010-11-23 12:58:59 +13:00
parent f4f9abe4d4
commit 2f74207bf6
2 changed files with 48 additions and 12 deletions

View File

@@ -47,5 +47,12 @@ namespace OpenRA.Network
}
return ms.ToArray();
}
public static int2 ReadInt2(this BinaryReader r)
{
var x = r.ReadInt32();
var y = r.ReadInt32();
return new int2(x, y);
}
}
}