aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2017-04-29 09:16:06 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-29 09:16:06 +0200
commit19960e26c672c6337f8c6ffbe27f2c6bca49750c (patch)
tree8913f6063be732c009eac19285bf1fcbbec95d08 /src/util
parentb662a4577d692329b9ca83525e6039f2ddcd1ac1 (diff)
downloadminetest-19960e26c672c6337f8c6ffbe27f2c6bca49750c.tar.gz
minetest-19960e26c672c6337f8c6ffbe27f2c6bca49750c.tar.bz2
minetest-19960e26c672c6337f8c6ffbe27f2c6bca49750c.zip
[CSM] add screenshot api lua (#5674)
* [CSM] add screenshot api lua
Diffstat (limited to 'src/util')
0 files changed, 0 insertions, 0 deletions
> but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "test.h" #include "exceptions.h" #include "remoteplayer.h" #include "content_sao.h" #include "server.h" class TestPlayer : public TestBase { public: TestPlayer() { TestManager::registerTestModule(this); } const char *getName() { return "TestPlayer"; } void runTests(IGameDef *gamedef); void testSave(IGameDef *gamedef); void testLoad(IGameDef *gamedef); }; static TestPlayer g_test_instance; void TestPlayer::runTests(IGameDef *gamedef) { TEST(testSave, gamedef); TEST(testLoad, gamedef); } void TestPlayer::testSave(IGameDef *gamedef) { RemotePlayer rplayer("testplayer_save", gamedef->idef()); PlayerSAO sao(NULL, 1, false); sao.initialize(&rplayer, std::set<std::string>()); rplayer.setPlayerSAO(&sao);