X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=network_common.h;h=ca46e4784ad0584ccc390836efd40e06cefac79a;hb=238a3a4ef19bb137e2a878ee38f99d253eddb51c;hp=7b6f81d22b8cffb2b9c7b82df493b929eaa5282a;hpb=15c0b8cb57ed5d10814103eaa0b5c06e8ae117e4;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/network_common.h b/network_common.h index 7b6f81d..ca46e47 100644 --- a/network_common.h +++ b/network_common.h @@ -1,16 +1,14 @@ -#ifndef NETWORK_COMMON_H -#define NETWORK_COMMON_H - -#include "vg/vg_stdint.h" +#pragma once #include "vg/vg_platform.h" +#include "vg/vg_string.h" #define NETWORK_USERNAME_MAX 32 #define NETWORK_MAX_PLAYERS 20 #define NETWORK_FRAMERATE 0.1 #define NETWORK_BUFFERFRAMES 6 -//#define NETWORK_LEADERBOARD_MAX_SIZE 1024 #define NETWORK_MAX_CHAT 128 -#define NETWORK_SKATERIFT_VERSION 8 +#define NETWORK_REGION_MAX 32 +#define NETWORK_SKATERIFT_VERSION 10 #define NETWORK_REQUEST_MAX 2048 #define NETWORK_LEADERBOARD_ALLTIME 0 @@ -31,12 +29,14 @@ static u32 network_msgstring( const char *src, static u32 network_pair_index( u32 _a, u32 _b ){ const u32 N = NETWORK_MAX_PLAYERS; - assert( (_a != _b) && (_a