commoon: engine: Fix not including all dependencies for headers. (Just some used in ref)

This commit is contained in:
lewa_j
2026-01-12 03:24:40 +03:00
committed by a1batross
parent e7f758f380
commit 8a75104cbc
18 changed files with 49 additions and 9 deletions

View File

@@ -16,6 +16,8 @@
#ifndef BEAMDEF_H #ifndef BEAMDEF_H
#define BEAMDEF_H #define BEAMDEF_H
#include "xash3d_types.h"
#define FBEAM_STARTENTITY 0x00000001 #define FBEAM_STARTENTITY 0x00000001
#define FBEAM_ENDENTITY 0x00000002 #define FBEAM_ENDENTITY 0x00000002
#define FBEAM_FADEIN 0x00000004 #define FBEAM_FADEIN 0x00000004

View File

@@ -16,6 +16,7 @@ GNU General Public License for more details.
#define BSPFILE_H #define BSPFILE_H
#include <stdint.h> #include <stdint.h>
#include "xash3d_types.h"
/* /*
============================================================================== ==============================================================================

View File

@@ -16,6 +16,8 @@
#ifndef CL_ENTITY_H #ifndef CL_ENTITY_H
#define CL_ENTITY_H #define CL_ENTITY_H
#include "const.h"
typedef struct efrag_s typedef struct efrag_s
{ {
struct mleaf_s *leaf; struct mleaf_s *leaf;

View File

@@ -1,4 +1,23 @@
#pragma once /*
com_image.h - image definitions common between client and server
Copyright (C) 2007 Uncle Mike
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef COM_IMAGE_H
#define COM_IMAGE_H
#include "xash3d_types.h"
/* /*
======================================================================== ========================================================================
@@ -130,3 +149,4 @@ typedef struct rgbdata_s
size_t size; // for bounds checking size_t size; // for bounds checking
} rgbdata_t; } rgbdata_t;
#endif//COM_IMAGE_H

View File

@@ -16,7 +16,7 @@ GNU General Public License for more details.
#ifndef COM_MODEL_H #ifndef COM_MODEL_H
#define COM_MODEL_H #define COM_MODEL_H
#include "xash3d_types.h" #include "const.h"
#include "bspfile.h" // we need some declarations from it #include "bspfile.h" // we need some declarations from it
/* /*

View File

@@ -723,8 +723,6 @@ enum
typedef int func_t; typedef int func_t;
typedef int string_t; typedef int string_t;
typedef unsigned short word;
#include "xash3d_types.h" #include "xash3d_types.h"
typedef struct typedef struct

View File

@@ -16,6 +16,8 @@
#ifndef DLIGHT_H #ifndef DLIGHT_H
#define DLIGHT_H #define DLIGHT_H
#include "const.h"
typedef struct dlight_s typedef struct dlight_s
{ {
vec3_t origin; vec3_t origin;

View File

@@ -16,6 +16,8 @@ GNU General Public License for more details.
#ifndef LIGHTSTYLE_H #ifndef LIGHTSTYLE_H
#define LIGHTSTYLE_H #define LIGHTSTYLE_H
#include "xash3d_types.h"
typedef struct typedef struct
{ {
char pattern[256]; char pattern[256];

View File

@@ -16,6 +16,8 @@
#ifndef PARTICLEDEF_H #ifndef PARTICLEDEF_H
#define PARTICLEDEF_H #define PARTICLEDEF_H
#include "xash3d_types.h"
typedef enum typedef enum
{ {
pt_static, pt_static,

View File

@@ -17,22 +17,22 @@
#define R_EFX_H #define R_EFX_H
// particle_t // particle_t
#if !defined( PARTICLEDEFH ) #if !defined( PARTICLEDEF_H )
#include "particledef.h" #include "particledef.h"
#endif #endif
// BEAM // BEAM
#if !defined( BEAMDEFH ) #if !defined( BEAMDEF_H )
#include "beamdef.h" #include "beamdef.h"
#endif #endif
// dlight_t // dlight_t
#if !defined ( DLIGHTH ) #if !defined ( DLIGHT_H )
#include "dlight.h" #include "dlight.h"
#endif #endif
// cl_entity_t // cl_entity_t
#if !defined( CL_ENTITYH ) #if !defined( CL_ENTITY_H )
#include "cl_entity.h" #include "cl_entity.h"
#endif #endif

View File

@@ -16,6 +16,8 @@
#ifndef REF_PARAMS_H #ifndef REF_PARAMS_H
#define REF_PARAMS_H #define REF_PARAMS_H
#include "xash3d_types.h"
typedef struct ref_params_s typedef struct ref_params_s
{ {
// output // output

View File

@@ -38,6 +38,7 @@ typedef byte rgb_t[3]; // unsigned byte colorpack
typedef vec_t matrix3x4[3][4] MAYBE_ALIGNED( 16 ); typedef vec_t matrix3x4[3][4] MAYBE_ALIGNED( 16 );
typedef vec_t matrix4x4[4][4] MAYBE_ALIGNED( 16 ); typedef vec_t matrix4x4[4][4] MAYBE_ALIGNED( 16 );
typedef uint32_t poolhandle_t; typedef uint32_t poolhandle_t;
typedef uint16_t word;
typedef uint32_t dword; typedef uint32_t dword;
typedef char string[MAX_STRING]; typedef char string[MAX_STRING];
typedef off_t fs_offset_t; typedef off_t fs_offset_t;

View File

@@ -19,6 +19,8 @@
#include "build.h" #include "build.h"
#include <stdint.h> #include <stdint.h>
#include "synctype.h" #include "synctype.h"
#include "xash3d_types.h"
#include "com_model.h"
/* /*
============================================================================== ==============================================================================

View File

@@ -20,6 +20,7 @@
#define MAX_ENT_LEAFS_16 48 #define MAX_ENT_LEAFS_16 48
#include "progdefs.h" #include "progdefs.h"
#include "const.h"
struct edict_s struct edict_s
{ {

View File

@@ -16,6 +16,8 @@
#ifndef PROGDEFS_H #ifndef PROGDEFS_H
#define PROGDEFS_H #define PROGDEFS_H
#include "const.h"
typedef struct typedef struct
{ {
float time; float time;

View File

@@ -26,9 +26,9 @@ GNU General Public License for more details.
#include "com_model.h" #include "com_model.h"
#include "studio.h" #include "studio.h"
#include "r_efx.h" #include "r_efx.h"
#include "com_image.h"
#include "filesystem.h" #include "filesystem.h"
#include "common/protocol.h" #include "common/protocol.h"
#include "cvardef.h"
// RefAPI changelog: // RefAPI changelog:
// 1. Initial release // 1. Initial release

View File

@@ -19,6 +19,7 @@
#include "build.h" #include "build.h"
#include <stdint.h> #include <stdint.h>
#include "synctype.h" #include "synctype.h"
#include "xash3d_types.h"
/* /*
============================================================================== ==============================================================================

View File

@@ -16,6 +16,8 @@
#ifndef STUDIO_H #ifndef STUDIO_H
#define STUDIO_H #define STUDIO_H
#include "xash3d_types.h"
/* /*
============================================================================== ==============================================================================