mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
31 lines
806 B
C++
31 lines
806 B
C++
#pragma once
|
|
|
|
#include "Script/Script.h"
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
namespace RBX
|
|
{
|
|
extern const char* const sCoreScript;
|
|
class CoreScript
|
|
: public DescribedNonCreatable<CoreScript, BaseScript, sCoreScript, RBX::Reflection::ClassDescriptor::INTERNAL_LOCAL>
|
|
{
|
|
private:
|
|
typedef DescribedNonCreatable<CoreScript, BaseScript, sCoreScript, RBX::Reflection::ClassDescriptor::INTERNAL_LOCAL> Super;
|
|
Code code;
|
|
|
|
public:
|
|
CoreScript();
|
|
|
|
static boost::optional<ProtectedString> fetchSource(const std::string& name);
|
|
|
|
virtual Code requestCode(ScriptInformationProvider* scriptInfoProvider=NULL);
|
|
|
|
virtual void extraErrorReporting(lua_State *thread);
|
|
|
|
protected:
|
|
// Instance
|
|
/*override*/ void onServiceProvider(ServiceProvider* oldProvider, ServiceProvider* newProvider);
|
|
};
|
|
}
|