mirror of
https://github.com/xtjoeytx/GServer-v2.git
synced 2026-05-08 08:40:08 -04:00
41 lines
697 B
C++
41 lines
697 B
C++
#ifndef TSCRIPTCLASS_H
|
|
#define TSCRIPTCLASS_H
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "CString.h"
|
|
#include "SourceCode.h"
|
|
|
|
class TServer;
|
|
class TScriptClass
|
|
{
|
|
public:
|
|
TScriptClass(TServer* server, const std::string& className, const std::string& classSource);
|
|
~TScriptClass();
|
|
|
|
// Functions -> Inline Get-Functions
|
|
CString getClassPacket() const;
|
|
|
|
const std::string& getName() const {
|
|
return _className;
|
|
}
|
|
|
|
const CString& getByteCode() const {
|
|
return _bytecode;
|
|
}
|
|
|
|
const SourceCode& getSource() const {
|
|
return _source;
|
|
}
|
|
|
|
private:
|
|
void parseScripts(TServer *server, const std::string& classSource);
|
|
|
|
std::string _className;
|
|
SourceCode _source;
|
|
CString _bytecode;
|
|
};
|
|
|
|
#endif
|