From b91eb2a9bdf4167c69a4d82f2a44855138f58b94 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 25 Feb 2026 21:21:38 +0100 Subject: replace number usage with type int/float type aliases --- test-client/protocol.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-client/protocol.ts b/test-client/protocol.ts index b4189510..3dfcc594 100644 --- a/test-client/protocol.ts +++ b/test-client/protocol.ts @@ -15,10 +15,10 @@ along with this program. If not, see . */ -export type Vec2 = [number, number] // x, y (float) export type float = number export type int = number -export type IVec2 = [number, number] // x, y (integer) +export type Vec2 = [float, float] // x, y (float) +export type IVec2 = [int, int] // x, y (integer) export type PlayerID = int // opaque number to identify players. export type ItemIndex = int // index used primarily for item_names in Gamedata export type TileIndex = int // index used primarily for tile_names in Gamedata -- cgit v1.3