uox3/source/cHTMLSystem.h
Xoduz 37a76083de Rest of the changes for 0.99.6-RC1
Misc cleanup and standardization of style and naming conventions in code and scripts
Added missing code for showing race in paperdoll based on ini setting
Players can no longer use Polymorph spell while incognitoed, or while under effect of tribal paint
Players can no longer use Incognito spell while polymorphed, or while under the effects of tribal paint
Facial hair is now removed from players who are under the effects of Incognito spell that changes their gender for female
2022-10-24 18:39:33 +08:00

74 lines
1.6 KiB
C++

//o-------------------------------------------------------------------------------------------------o
//| File - cHTMLSystem.h
//o-------------------------------------------------------------------------------------------------o
//| Purpose - Interface for the cHTMLSystem class
//o-------------------------------------------------------------------------------------------------o
#ifndef __CHTMLSYSTEM_H__
#define __CHTMLSYSTEM_H__
#if defined(_MSC_VER)
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif
enum ETemplateType
{
ETT_ALLTEMPLATES = -1,
ETT_GMSTATUS =0 ,
ETT_GUILD,
ETT_OFFLINE,
ETT_PLAYER,
ETT_ONLINE,
ETT_INVALIDTEMPLATE = 0xFF
};
class cHTMLTemplate
{
private:
UI32 updateTimer;
std::string inputFile;
bool loaded;
ETemplateType type;
std::string content;
std::string outputFile;
std::string name;
UI32 scheduledUpdate;
public:
cHTMLTemplate();
~cHTMLTemplate();
void Process( void );
void Poll( void );
void LoadTemplate( void );
void UnloadTemplate( void );
void Load( CScriptSection *found );
// Some Getters
std::string GetName( void ) const;
std::string GetOutput( void ) const;
std::string GetInput( void ) const;
ETemplateType GetTemplateType( void ) const;
UI32 GetScheduledUpdate( void ) const;
UI32 GetUpdateTimer( void ) const;
};
class cHTMLTemplates
{
private:
std::vector<cHTMLTemplate*> Templates;
public:
cHTMLTemplates() = default;
~cHTMLTemplates();
void Load( void );
void Unload( void );
void Poll( ETemplateType nTemplateId = ETT_ALLTEMPLATES );
void TemplateInfoGump( CSocket *mySocket );
};
extern cHTMLTemplates *HTMLTemplates;
#endif