aboutsummaryrefslogtreecommitdiff
path: root/games/devtest/mods/basetools/textures/basetools_stonesword.png
blob: 6f3e94cda2f7dc43247258e43ebb8e0558701343 (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 10 00 00 00 10 08 02 00 00 00 90 91 68 .PNG........IHDR...............h
0020 36 00 00 00 06 74 52 4e 53 00 00 00 00 00 00 6e a6 07 91 00 00 00 54 49 44 41 54 78 01 63 a0 09 6....tRNS......n......TIDATx.c..
0040 f0 80 01 62 55 d7 d5 d5 25 26 26 02 19 24 a8 86 68 18 ec aa 61 e1 40 58 35 42 43 5f 5f 1f 69 2e ...bU...%&&..$..h...a.@X5BC__.i.
0060 d1 14 61 05 ea 41 a8 26 08 0a fc 34 9c 94 38 81 7a 48 50 1d 6b ab 02 d7 43 c0 31 10 d5 c8 01 40 ..a..A.&...4..8.zHP.k...C.1....@
0080 20 10 81 7a 48 4b 5b 0c 34 02 00 0d 3d 40 e8 7f be 43 4e 00 00 00 00 49 45 4e 44 ae 42 60 82 ...zHK[.4...=@...CN....IEND.B`.
id='n66' href='#n66'>66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
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 "cpp_api/s_player.h"
#include "cpp_api/s_internal.h"
#include "util/string.h"

void ScriptApiPlayer::on_newplayer(ServerActiveObject *player)
{
	SCRIPTAPI_PRECHECKHEADER

	// Get core.registered_on_newplayers
	lua_getglobal(L, "core");
	lua_getfield(L, -1, "registered_on_newplayers");
	// Call callbacks
	objectrefGetOrCreate(player);
	script_run_callbacks(L, 1, RUN_CALLBACKS_MODE_FIRST);
}

void ScriptApiPlayer::on_dieplayer(ServerActiveObject *player)
{
	SCRIPTAPI_PRECHECKHEADER

	// Get core.registered_on_dieplayers