2016-03-01 15:47:10 +00:00
|
|
|
#ifndef __R_TRANSLATE_H
|
|
|
|
#define __R_TRANSLATE_H
|
|
|
|
|
|
|
|
#include "doomtype.h"
|
|
|
|
#include "tarray.h"
|
2020-04-11 11:04:17 +00:00
|
|
|
#include "palettecontainer.h"
|
2016-03-01 15:47:10 +00:00
|
|
|
|
2016-09-20 17:45:32 +00:00
|
|
|
class FSerializer;
|
2016-03-01 15:47:10 +00:00
|
|
|
|
2020-04-11 10:44:59 +00:00
|
|
|
enum
|
|
|
|
{
|
2020-04-11 17:11:20 +00:00
|
|
|
TRANSLATION_Players = 1,
|
2020-04-11 10:44:59 +00:00
|
|
|
TRANSLATION_PlayersExtra,
|
|
|
|
TRANSLATION_Standard,
|
|
|
|
TRANSLATION_LevelScripted,
|
|
|
|
TRANSLATION_Decals,
|
|
|
|
TRANSLATION_PlayerCorpses,
|
|
|
|
TRANSLATION_Decorate,
|
|
|
|
TRANSLATION_Blood,
|
|
|
|
TRANSLATION_RainPillar,
|
|
|
|
TRANSLATION_Custom,
|
|
|
|
|
|
|
|
NUM_TRANSLATION_TABLES
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2018-03-21 23:29:01 +00:00
|
|
|
enum EStandardTranslations
|
|
|
|
{
|
|
|
|
STD_Ice = 7,
|
|
|
|
};
|
|
|
|
|
2016-03-01 15:47:10 +00:00
|
|
|
#define MAX_ACS_TRANSLATIONS 65535
|
|
|
|
#define MAX_DECORATE_TRANSLATIONS 65535
|
|
|
|
|
|
|
|
// Initialize color translation tables, for player rendering etc.
|
|
|
|
void R_InitTranslationTables (void);
|
|
|
|
|
|
|
|
void R_BuildPlayerTranslation (int player); // [RH] Actually create a player's translation table.
|
|
|
|
void R_GetPlayerTranslation (int color, const struct FPlayerColorSet *colorset, class FPlayerSkin *skin, struct FRemapTable *table);
|
|
|
|
|
|
|
|
int CreateBloodTranslation(PalEntry color);
|
|
|
|
|
2016-11-25 15:05:03 +00:00
|
|
|
int R_FindCustomTranslation(FName name);
|
2016-10-02 11:35:25 +00:00
|
|
|
void R_ParseTrnslate();
|
2020-04-11 10:43:46 +00:00
|
|
|
void StaticSerializeTranslations(FSerializer& arc);
|
2016-10-02 11:35:25 +00:00
|
|
|
|
2016-03-01 15:47:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif // __R_TRANSLATE_H
|