2
0
mirror of https://github.com/rehlds/rehlds.git synced 2025-04-12 04:20:06 +03:00
rehlds/rehlds/engine/pr_edict.h
dreamstalker 2a0fff4074 #8 Refactoring SDK
Get rid of (u)int[nn]_t types from osconfig.h, use (u)int[nn] from archtypes.h instead
2015-05-09 20:58:58 +04:00

76 lines
2.9 KiB
C

/*
*
* 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 2 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* In addition, as a special exception, the author gives permission to
* link the code of this program with the Half-Life Game Engine ("HL
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
* L.L.C ("Valve"). You must obey the GNU General Public License in all
* respects for all of the code used other than the HL Engine and MODs
* from Valve. If you modify this file, you may extend this exception
* to your version of the file, but you are not obligated to do so. If
* you do not wish to do so, delete this exception statement from your
* version.
*
*/
#ifndef PR_EDICT_H
#define PR_EDICT_H
#ifdef _WIN32
#pragma once
#endif
#include "maintypes.h"
#include "cvar.h"
#include "pm_defs.h"
#include "progdefs.h"
void ED_ClearEdict(edict_t *e);
edict_t *ED_Alloc(void);
void ED_Free(edict_t *ed);
NOXREF void ED_Count(void);
char *ED_NewString(const char *string);
char *ED_ParseEdict(char *data, edict_t *ent);
void ED_LoadFromFile(char *data);
NOXREF void PR_Init(void);
edict_t *EDICT_NUM(int n);
int NUM_FOR_EDICT(const edict_t *e);
bool SuckOutClassname(char *szInputStream, edict_t *pEdict);
void ReleaseEntityDLLFields(edict_t *pEdict);
void InitEntityDLLFields(edict_t *pEdict);
void *PvAllocEntPrivateData(edict_t *pEdict, int32 cb);
void *PvEntPrivateData(edict_t *pEdict);
void FreeEntPrivateData(edict_t *pEdict);
void FreeAllEntPrivateData(void);
edict_t *PEntityOfEntOffset(int iEntOffset);
int EntOffsetOfPEntity(const edict_t *pEdict);
int IndexOfEdict(const edict_t *pEdict);
edict_t *PEntityOfEntIndex(int iEntIndex);
const char *SzFromIndex(int iString);
entvars_t *GetVarsOfEnt(edict_t *pEdict);
edict_t *FindEntityByVars(entvars_t *pvars);
float CVarGetFloat(const char *szVarName);
const char *CVarGetString(const char *szVarName);
cvar_t *CVarGetPointer(const char *szVarName);
void CVarSetFloat(const char *szVarName, float flValue);
void CVarSetString(const char *szVarName, const char *szValue);
void CVarRegister(cvar_t *pCvar);
int AllocEngineString(const char *szValue);
void SaveSpawnParms(edict_t *pEdict);
void *GetModelPtr(edict_t *pEdict);
#endif // PR_EDICT_H