2015-12-23 10:56:02 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Materials : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Materials();
|
2016-08-15 10:40:30 -04:00
|
|
|
~Materials();
|
|
|
|
|
2016-09-16 05:04:28 -04:00
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
2015-12-23 10:56:02 -05:00
|
|
|
const char* GetName() { return "Materials"; };
|
2016-08-15 10:40:30 -04:00
|
|
|
#endif
|
2015-12-23 10:56:02 -05:00
|
|
|
|
2015-12-23 21:26:46 -05:00
|
|
|
private:
|
2016-09-04 11:13:06 -04:00
|
|
|
static int ImageNameLength;
|
2016-09-03 10:59:05 -04:00
|
|
|
|
2015-12-23 10:56:02 -05:00
|
|
|
static Utils::Hook ImageVersionCheckHook;
|
|
|
|
static void ImageVersionCheck();
|
2015-12-30 10:06:58 -05:00
|
|
|
|
2016-09-04 11:13:06 -04:00
|
|
|
static Game::Material* ResolveMaterial(const char* stringPtr);
|
2015-12-30 10:06:58 -05:00
|
|
|
static void DrawMaterialStub();
|
2016-09-04 11:13:06 -04:00
|
|
|
static void PostDrawMaterialStub();
|
|
|
|
|
|
|
|
static int WriteDeathMessageIcon(char* string, int offset, Game::Material* material);
|
|
|
|
static void DeathMessageStub();
|
2015-12-23 10:56:02 -05:00
|
|
|
};
|
|
|
|
}
|