35 Script(tenno::weak_ptr<Node> node,
const std::string &source)
36 : source(source), node(node)
40 Script(tenno::weak_ptr<Node> node,
const std::filesystem::path &path)
41 : path(path), node(node)
47 this->source = tenno::move(other.source);
48 this->path = tenno::move(other.path);
49 this->node = tenno::move(other.node);
50 this->state = other.state;
51 other.state =
nullptr;
57 this->source = tenno::move(other.source);
58 this->path = tenno::move(other.path);
59 this->node = tenno::move(other.node);
60 this->state = other.state;
61 other.state =
nullptr;
67 void update(
float delta_time);
71 std::optional<std::string> source;
72 std::optional<std::filesystem::path> path;
73 lua_State *state =
nullptr;
74 tenno::weak_ptr<Node> node;
78 static int lua_get_position(lua_State* L);
79 static int lua_set_position(lua_State* L);
80 static Node* current_node;