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
#define BEAMDEF_H
#include "xash3d_types.h"
#define FBEAM_STARTENTITY 0x00000001
#define FBEAM_ENDENTITY 0x00000002
#define FBEAM_FADEIN 0x00000004

View File

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

View File

@@ -16,6 +16,8 @@
#ifndef CL_ENTITY_H
#define CL_ENTITY_H
#include "const.h"
typedef struct efrag_s
{
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
} rgbdata_t;
#endif//COM_IMAGE_H

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -16,6 +16,8 @@
#ifndef REF_PARAMS_H
#define REF_PARAMS_H
#include "xash3d_types.h"
typedef struct ref_params_s
{
// 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 matrix4x4[4][4] MAYBE_ALIGNED( 16 );
typedef uint32_t poolhandle_t;
typedef uint16_t word;
typedef uint32_t dword;
typedef char string[MAX_STRING];
typedef off_t fs_offset_t;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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