Debian Codegraph @

plugins/script/interfaces/RadiantInterface.h

raw
1 #pragma once
2
3 #include "iradiant.h"
4 #include "iscript.h"
5 #include "iscriptinterface.h"
6
7 #include "EntityInterface.h"
8
9 namespace script
10 {
11
12 /**
13 * greebo: This class registers the base set of interfaces, like
14 * entity types, primitives, etc.
15 */
16 class RadiantInterface :
17 public IScriptInterface
18 {
19 public:
20 // Returns the first entity matching the given classname
21 ScriptEntityNode findEntityByClassname(const std::string& name);
22 // Find the entity with the given name
23 ScriptEntityNode findEntityByName(const std::string& name);
24
25 // IScriptInterface implementation
26 void registerInterface(py::module& scope, py::dict& globals) override;
27 };
28
29 } // namespace script