coastline 0.0.4
Loading...
Searching...
No Matches
damagetexture.h
Go to the documentation of this file.
1#ifndef COASTLINE_DAMAGETEXTURE_H
2#define COASTLINE_DAMAGETEXTURE_H
3
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
14#define DAMAGE_TEXTURE_MAX_LEVEL 3
15
17#define DAMAGE_TEXTURE_COUNT 8
18
29void IncrementDamageTextureLevel(int nTexture, const int *pnEntries, int *pnLevels);
30
41void ApplyRandomAdjacentDamageTexture(int nTexture, const int *pnEntries, int *pnLevels);
42
50
58
66void CopyDamageTextureEntries(int *pnEntries);
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* COASTLINE_DAMAGETEXTURE_H */
void ClearDamageTextureEntries(void)
Clear g_anDamageTextureEntries.
void CopyDamageTextureEntries(int *pnEntries)
Copy g_anDamageTextureEntries.
#define DAMAGE_TEXTURE_COUNT
The number of damage textures of IncrementDamageTextureLevel().
Definition damagetexture.h:17
void IncrementDamageTextureLevel(int nTexture, const int *pnEntries, int *pnLevels)
Raise the level of damage of a damage texture by one, up to DAMAGE_TEXTURE_MAX_LEVEL,...
void ApplyRandomAdjacentDamageTexture(int nTexture, const int *pnEntries, int *pnLevels)
Raise the level of damage of a damage texture or of one of its two neighbours, wrapping at the ends,...
int g_anDamageTextureEntries[DAMAGE_TEXTURE_COUNT]
The texture entries of the damage textures of the vehicles.