mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
#include "V8Tree/Service.h"
|
||||
#include "script/IScriptFilter.h"
|
||||
|
||||
namespace RBX {
|
||||
|
||||
extern const char* const sServerScriptService;
|
||||
|
||||
class ServerScriptService
|
||||
: public DescribedCreatable<ServerScriptService, Instance, sServerScriptService, Reflection::ClassDescriptor::PERSISTENT_LOCAL_INTERNAL>
|
||||
, public Service
|
||||
, public IScriptFilter
|
||||
{
|
||||
public:
|
||||
static Reflection::PropDescriptor<ServerScriptService, bool> desc_loadStringEnabled;
|
||||
|
||||
ServerScriptService();
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// IScriptFilter
|
||||
/*override*/ bool scriptShouldRun(BaseScript* script);
|
||||
|
||||
bool getLoadStringEnabled() const { return loadStringEnabled; }
|
||||
void setLoadStringEnabled(bool value);
|
||||
|
||||
private:
|
||||
////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Instance
|
||||
/*override*/ bool askSetParent(const Instance* instance) const { return false; }
|
||||
/*override*/ bool askForbidParent(const Instance* instance) const { return !askSetParent(instance); }
|
||||
/*override*/ bool askAddChild(const Instance* instance) const;
|
||||
/*override*/ bool askForbidChild(const Instance* instance) const { return !askAddChild(instance); }
|
||||
|
||||
bool loadStringEnabled;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user