2024-10-28 15:57:39 +01:00
|
|
|
// Luanti
|
|
|
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
|
2012-11-26 10:20:57 +02:00
|
|
|
|
2017-08-17 22:19:39 +02:00
|
|
|
#pragma once
|
2012-11-26 10:20:57 +02:00
|
|
|
|
2013-08-11 04:09:45 +02:00
|
|
|
#include "lua_api/l_base.h"
|
2012-11-26 10:20:57 +02:00
|
|
|
|
2013-11-12 16:13:00 -05:00
|
|
|
class ModApiRollback : public ModApiBase
|
|
|
|
{
|
2013-08-11 04:09:45 +02:00
|
|
|
private:
|
2013-11-12 16:13:00 -05:00
|
|
|
// rollback_get_node_actions(pos, range, seconds) -> {{actor, pos, time, oldnode, newnode}, ...}
|
|
|
|
static int l_rollback_get_node_actions(lua_State *L);
|
2013-08-11 04:09:45 +02:00
|
|
|
|
|
|
|
// rollback_revert_actions_by(actor, seconds) -> bool, log messages
|
|
|
|
static int l_rollback_revert_actions_by(lua_State *L);
|
|
|
|
|
|
|
|
public:
|
|
|
|
static void Initialize(lua_State *L, int top);
|
|
|
|
};
|