diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-02-25 21:21:38 +0100 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2026-02-26 20:49:15 +0100 |
| commit | b91eb2a9bdf4167c69a4d82f2a44855138f58b94 (patch) | |
| tree | fe8899aa2be608c4e6106ba200668278c5395a68 | |
| parent | 0dcee29e27aefdfebe69056957969caf7f57e657 (diff) | |
| download | hurrycurry-b91eb2a9bdf4167c69a4d82f2a44855138f58b94.tar hurrycurry-b91eb2a9bdf4167c69a4d82f2a44855138f58b94.tar.bz2 hurrycurry-b91eb2a9bdf4167c69a4d82f2a44855138f58b94.tar.zst | |
replace number usage with type int/float type aliases
| -rw-r--r-- | test-client/protocol.ts | 4 |
1 files 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 <https://www.gnu.org/licenses/>. */ -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 |