mirror of
https://github.com/xtjoeytx/GServer-v2.git
synced 2026-05-06 23:59:39 -04:00
43 lines
651 B
C++
43 lines
651 B
C++
#ifndef TSCRIPTCLASS_H
|
|
#define TSCRIPTCLASS_H
|
|
|
|
#include <string>
|
|
|
|
#include <CString.h>
|
|
|
|
#include "scripting/SourceCode.h"
|
|
|
|
class ScriptClass
|
|
{
|
|
public:
|
|
ScriptClass(const std::string& className, const std::string& classSource);
|
|
~ScriptClass();
|
|
|
|
// Functions -> Inline Get-Functions
|
|
CString getClassPacket() const;
|
|
|
|
const std::string& getName() const
|
|
{
|
|
return m_className;
|
|
}
|
|
|
|
const CString& getByteCode() const
|
|
{
|
|
return m_bytecode;
|
|
}
|
|
|
|
const SourceCode& getSource() const
|
|
{
|
|
return m_source;
|
|
}
|
|
|
|
private:
|
|
void parseScripts(const std::string& classSource);
|
|
|
|
std::string m_className;
|
|
SourceCode m_source;
|
|
CString m_bytecode;
|
|
};
|
|
|
|
#endif
|