2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-01-16 16:48:13 +03:00

Move sv_delta_s declaration to the public file.

Add missing files to the project.
This commit is contained in:
Lev 2017-03-12 18:09:38 +05:00
parent 099f062c3f
commit 69c1833b4b
5 changed files with 28 additions and 8 deletions

View File

@ -241,12 +241,6 @@ typedef struct client_s
int m_sendrescount; int m_sendrescount;
} client_t; } client_t;
typedef enum sv_delta_s
{
sv_packet_nodelta,
sv_packet_delta,
} sv_delta_t;
enum enum
{ {
SND_ANYPLAYER, SND_ANYPLAYER,

View File

@ -499,6 +499,8 @@
<ClInclude Include="..\public\rehlds\hookchains.h" /> <ClInclude Include="..\public\rehlds\hookchains.h" />
<ClInclude Include="..\public\rehlds\keydefs.h" /> <ClInclude Include="..\public\rehlds\keydefs.h" />
<ClInclude Include="..\public\rehlds\maintypes.h" /> <ClInclude Include="..\public\rehlds\maintypes.h" />
<ClInclude Include="..\public\rehlds\model.h" />
<ClInclude Include="..\public\rehlds\modelgen.h" />
<ClInclude Include="..\public\rehlds\osconfig.h" /> <ClInclude Include="..\public\rehlds\osconfig.h" />
<ClInclude Include="..\public\rehlds\progdefs.h" /> <ClInclude Include="..\public\rehlds\progdefs.h" />
<ClInclude Include="..\public\rehlds\progs.h" /> <ClInclude Include="..\public\rehlds\progs.h" />
@ -506,7 +508,9 @@
<ClInclude Include="..\public\rehlds\rehlds_interfaces.h" /> <ClInclude Include="..\public\rehlds\rehlds_interfaces.h" />
<ClInclude Include="..\public\rehlds\Sequence.h" /> <ClInclude Include="..\public\rehlds\Sequence.h" />
<ClInclude Include="..\public\rehlds\shake.h" /> <ClInclude Include="..\public\rehlds\shake.h" />
<ClInclude Include="..\public\rehlds\spritegn.h" />
<ClInclude Include="..\public\rehlds\static_map.h" /> <ClInclude Include="..\public\rehlds\static_map.h" />
<ClInclude Include="..\public\rehlds\studio.h" />
<ClInclude Include="..\public\rehlds\sys_shared.h" /> <ClInclude Include="..\public\rehlds\sys_shared.h" />
<ClInclude Include="..\public\rehlds\userid_rehlds.h" /> <ClInclude Include="..\public\rehlds\userid_rehlds.h" />
<ClInclude Include="..\public\savegame_version.h" /> <ClInclude Include="..\public\savegame_version.h" />

View File

@ -1080,6 +1080,18 @@
<ClInclude Include="..\engine\sse_mathfun.h"> <ClInclude Include="..\engine\sse_mathfun.h">
<Filter>engine</Filter> <Filter>engine</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\public\rehlds\model.h">
<Filter>public\rehlds</Filter>
</ClInclude>
<ClInclude Include="..\public\rehlds\modelgen.h">
<Filter>public\rehlds</Filter>
</ClInclude>
<ClInclude Include="..\public\rehlds\spritegn.h">
<Filter>public\rehlds</Filter>
</ClInclude>
<ClInclude Include="..\public\rehlds\studio.h">
<Filter>public\rehlds</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="..\linux\appversion.sh"> <None Include="..\linux\appversion.sh">

View File

@ -47,6 +47,16 @@
#define BIT(n) (1<<(n)) #define BIT(n) (1<<(n))
typedef unsigned int string_t; // from engine's pr_comp.h; // From engine/pr_comp.h;
typedef unsigned int string_t;
// From engine/server.h
typedef enum sv_delta_s
{
sv_packet_nodelta,
sv_packet_delta,
} sv_delta_t;
#endif // MAINTYPES_H #endif // MAINTYPES_H

View File

@ -268,7 +268,7 @@ struct RehldsFuncs_t {
cvar_t*(*GetCvarVars)(); cvar_t*(*GetCvarVars)();
int (*SV_GetChallenge)(const netadr_t& adr); int (*SV_GetChallenge)(const netadr_t& adr);
void (*SV_AddResource)(resourcetype_t type, const char *name, int size, unsigned char flags, int index); void (*SV_AddResource)(resourcetype_t type, const char *name, int size, unsigned char flags, int index);
int(*MSG_ReadShort)(void); int(*MSG_ReadShort)();
int(*MSG_ReadBuf)(int iSize, void *pbuf); int(*MSG_ReadBuf)(int iSize, void *pbuf);
void(*MSG_WriteBuf)(sizebuf_t *sb, int iSize, void *buf); void(*MSG_WriteBuf)(sizebuf_t *sb, int iSize, void *buf);
void(*MSG_WriteByte)(sizebuf_t *sb, int c); void(*MSG_WriteByte)(sizebuf_t *sb, int c);