ofs | hex dump | ascii |
---|
0000 | 4f 67 67 53 00 02 00 00 00 00 00 00 00 00 7e 72 59 51 00 00 00 00 8b 66 6f 84 01 1e 01 76 6f 72 | OggS..........~rYQ.....fo....vor |
0020 | 62 69 73 00 00 00 00 02 80 bb 00 00 00 00 00 00 00 71 02 00 00 00 00 00 b8 01 4f 67 67 53 00 00 | bis..............q........OggS.. |
0040 | 00 00 00 00 00 00 00 00 7e 72 59 51 01 00 00 00 ce 88 af 19 13 ff b1 ff ff ff ff ff ff ff ff ff | ........~rYQ.................... |
0060 | ff ff ff ff ff ff ff 91 03 76 6f 72 62 69 73 2f 00 00 00 58 69 70 68 2e 4f 72 67 20 6c 69 62 56 | .........vorbis/...Xiph.Org.libV |
0080 | 6f 72 62 69 73 20 49 20 32 30 31 34 30 31 32 32 20 28 54 75 72 70 61 6b c3 a4 72 c3 a4 6a 69 69 | orbis.I.20140122.(Turpak..r..jii |
00a0 | 6e 29 10 00 00 00 0f 00 00 00 44 41 54 45 3d 32 30 31 37 2d 31 31 2d 32 35 0f 00 00 00 73 6f 75 | n)........DATE=2017-11-25....sou |
00c0 | 72 63 65 3d 6f 72 69 67 69 6e 61 6c 11 00 00 00 65 6e 63 6f 64 65 64 5f 62 79 3d 52 45 41 50 45 | rce=original....encoded_by=REAPE |
00e0 | 52 0d 00 00 00 73 69 7a 65 3d 31 32 39 37 37 38 38 34 07 00 00 00 77 69 64 74 68 3d 30 2c 00 00 | R....size=12977884....width=0,.. |
0100 | 00 63 6f 6d 6d 65 6e 74 3d 68 74 74 70 3a 2f 2f 61 72 63 68 69 76 65 2e 6f 72 67 2f 64 65 74 61 | .comment=http://archive.org/deta |
0120 | 69 6c 73 2f 43 6f 64 65 73 6f 75 6e 64 15 00 00 00 65 6e 63 6f 64 65 72 3d 4c 61 76 66 35 37 2e | ils/Codesound....encoder=Lavf57. |
0140 | 32 31 2e 31 30 31 0b 00 00 00 66 6f 72 6d 61 74 3d 57 41 56 45 10 00 00 00 6d 74 69 6d 65 3d 31 | 21.101....format=WAVE....mtime=1 |
0160 | 35 31 31 35 39 38 36 39 32 24 00 00 00 6d 64 35 3d 35 39 62 64 31 62 62 38 30 33 62 39 30 31 34 | 511598692$...md5=59bd1bb803b9014 |
0180 | 64 31 36 61 39 31 34 30 65 61 61 62 36 31 35 34 62 0f 00 00 00 64 61 74 65 3d 32 30 31 37 2d 31 | d16a9140eaab6154b....date=2017-1 |
01a0 | 31 2d 32 35 0e 00 00 00 63 72 63 33 32 3d 34 37 62 63 35 33 32 32 10 00 00 00 74 69 6d 65 5f 72 | 1-25....crc32=47bc5322....time_r |
01c0 | 65 66 65 72 65 6e 63 65 3d 30 08 00 00 00 68 65 69 67 68 74 3d 30 2d 00 00 00 73 68 61 31 3d 63 | eference=0....height=0-...sha1=c |
01e0 | 33 33 64 30 64 65 38 65 35 62 39 62 30 64 36 31 64 63 33 32 61 65 36 38 34 36 65 61 30 63 63 36 | 33d0de8e5b9b0d61dc32ae6846ea0cc6 |
0200 | 34 38 65 34 34 33 32 0c 00 00 00 6c 65 6e 67 74 68 3d 34 35 2e 30 36 01 05 76 6f 72 62 69 73 29 | 48e4432....length=45.06..vorbis) |
0220 | 42 43 56 01 00 08 00 00 00 31 4c 20 c5 80 d0 90 55 00 00 10 00 00 60 24 29 0e 93 66 49 29 a5 94 | BCV......1L.....U.....`$)..fI).. |
0240 | a1 28 79 98 94 48 49 29 a5 94 c5 30 89 98 94 89 c5 18 63 8c 31 c6 18 63 8c 31 c6 18 63 8c 20 34 | .(y..HI)...0......c.1..c.1..c..4 |
0260 | 64 15 00 00 04 00 80 28 09 8e a3 e6 49 6a ce 39 67 18 27 8e 72 a0 39 69 4e 38 a7 20 07 8a 51 e0 | d......(....Ij.9g.'.r.9iN8....Q. |
0280 | 39 09 c2 f5 26 63 6e a6 b4 a6 6b 6e ce 29 25 08 0d 59 05 00 00 02 00 40 48 21 85 14 52 48 21 85 | 9...&cn...kn.)%..Y.....@H!..RH!. |
02a0 | 14 62 88 21 86 18 62 88 21 87 1c 72 c8 21 a7 9c 72 0a 2a a8 a0 82 0a 32 c8 20 83 4c 32 e9 a4 93 | .b.!..b.!..r.!..r.*....2...L2... |
02c0 | 4e 3a e9 a8 a3 8e 3a ea 28 b4 d0 42 0b 2d b4 d2 4a 4c 31 d5 56 63 ae bd 06 5d 7c 73 ce 39 e7 9c | N:....:.(..B.-..JL1.Vc...]|s.9.. |
02e0 | 73 ce 39 e7 9c 73 ce 09 42 43 56 01 00 20 00 00 04 42 06 19 64 10 42 08 21 85 14 52 88 29 a6 98 | s.9..s..BCV......B..d.B.!..R.).. |
0300 | 72 0a 32 c8 80 d0 90 55 00 00 20 00 80 00 00 00 00 47 91 14 49 b1 14 cb b1 1c cd d1 24 4f f2 2c | r.2....U.........G..I.......$O., |
0320 | 51 13 35 d1 33 45 53 54 4d 55 55 55 55 75 5d 57 76 65 d7 76 75 d7 76 7d 59 98 85 5b b8 7d 59 b8 | Q.5.3ESTMUUUUu]Wve.vu.v}Y..[.}Y. |
0340 | 85 5b d8 85 5d f7 85 61 18 86 61 18 86 61 18 86 61 f8 7d df f7 7d df f7 7d 20 34 64 15 00 20 01 | .[..]..a..a..a..a.}..}..}.4d.... |
0360 | 00 a0 23 39 96 e3 29 a2 22 1a a2 e2 39 a2 03 84 86 ac 02 00 64 00 00 04 00 20 09 92 22 29 92 a3 | ..#9..)."...9.......d.......").. |
0380 | 49 a6 66 6a ae 69 9b b6 68 ab b6 6d cb b2 2c cb b2 0c 84 86 ac 02 00 00 01 00 04 00 00 00 00 00 | I.fj.i..h..m..,................. |
03a0 | a0 69 9a a6 69 9a a6 69 9a a6 69 9a a6 69 9a a6 69 9a a6 69 9a 66 59 96 65 59 96 65 59 96 65 59 | .i..i..i..i..i..i..i.fY.eY.eY.eY |
03c0 | 96 65 59 96 65 59 96 65 59 96 65 59 96 65 59 96 65 59 96 65 59 96 65 59 96 65 59 40 68 c8 2a 00 | .eY.eY.eY.eY.eY.eY.eY.eY.eY@h.*. |
03e0 | 40 02 00 40 c7 71 1c c7 71 24 45 52 24 c7 72 2c 07 08 0d 59 05 00 c8 00 00 08 00 40 52 2c c5 72 | @..@.q..q$ER$.r,...Y.......@R,.r |
0400 | 34 47 73 34 c7 73 3c c7 73 3c 47 74 44 c9 94 4c cd f4 4c 0f 08 0d 59 05 00 00 02 00 08 00 00 00 | 4Gs4.s<.s<GtD..L..L...Y......... |
0420 | 00 00 40 31 1c c5 71 1c c9 d1 24 4f 52 2d d3 72 35 57 73 3d d7 73 4d d7 75 5d 57 55 55 55 55 55 | ..@1..q...$OR-.r5Ws=.sM.u]WUUUUU |
0440 | 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 81 d0 90 | UUUUUUUUUUUUUUUUUUUUUUUUUUUUU... |
0460 | 55 00 00 04 00 00 21 9d 66 96 6a 80 08 33 90 61 20 34 64 15 00 80 00 00 00 18 a1 08 43 0c 08 0d | U.....!.f.j..3.a.4d.........C... |
0480 | 59 05 00 00 04 00 00 88 a1 e4 20 9a d0 9a f3 cd 39 0e 9a e5 a0 a9 14 9b d3 c1 89 54 9b 27 b9 a9 | Y...............9..........T.'.. |
04a0 | 98 9b 73 ce 39 e7 9c 6c ce 19 e3 9c 73 ce 29 ca 99 c5 a0 99 d0 9a 73 ce 49 0c 9a a5 a0 99 d0 9a | ..s.9..l....s.).......s.I....... |
04c0 | 73 ce 79 12 9b 07 ad a9 d2 9a 73 ce 19 e7 9c 0e c6 19 61 9c 73 ce 69 d2 9a 07 a9 d9 58 9b 73 ce | s.y.......s.......a.s.i.....X.s. |
04e0 | 59 d0 9a e6 a8 b9 14 9b 73 ce 89 94 9b 27 b5 b9 54 9b 73 ce 39 e7 9c 73 ce 39 e7 9c 73 ce a9 5e | Y.......s....'..T.s.9..s.9..s..^ |
0500 | 9c ce c1 39 e1 9c 73 ce 89 da 9b 6b b9 09 5d 9c 73 ce f9 64 9c ee cd 09 e1 9c 73 ce 39 e7 9c 73 | ...9..s....k..].s..d......s.9..s |
0520 | ce 39 e7 9c 73 ce 09 42 43 56 01 00 40 00 00 04 61 d8 18 c6 9d 82 20 7d 8e 06 62 14 21 a6 21 93 | .9..s..BCV..@...a......}..b.!.!. |
0540 | 1e 74 8f 0e 93 a0 31 c8 29 a4 1e 8d 8e 46 4a a9 83 50 52 19 27 a5 74 82 d0 90 55 00 00 20 00 00 | .t....1.)....FJ..PR.'.t...U..... |
0560 | 84 10 52 48 21 85 14 52 48 21 85 14 52 48 21 86 18 62 88 21 a7 9c 72 0a 2a a8 a4 92 8a 2a ca 28 | ..RH!..RH!..RH!..b.!..r.*....*.( |
0580 | b3 cc 32 cb 2c b3 cc 32 cb ac c3 ce 3a eb b0 c3 10 43 0c 31 b4 d2 4a 2c 35 d5 56 63 8d b5 e6 9e | ..2.,..2....:....C.1..J,5.Vc.... |
05a0 | 73 ae 39 48 6b a5 b5 d6 5a 2b a5 94 52 4a 29 a5 20 34 64 15 00 00 02 00 40 20 64 90 41 06 19 85 | s.9Hk...Z+..RJ)..4d.....@.d.A... |
05c0 | 14 52 48 21 86 98 72 ca 29 a7 a0 82 0a 08 0d 59 05 00 00 02 00 08 00 00 00 f0 24 cf 11 1d d1 11 | .RH!..r.)......Y..........$..... |
05e0 | 1d d1 11 1d d1 11 1d d1 11 1d cf f1 1c 51 12 25 51 12 25 d1 32 2d 53 33 3d 55 54 55 57 76 6d 59 | .............Q.%Q.%.2-S3=UTUWvmY |
0600 | 97 75 db b7 85 5d d8 75 df d7 7d df d7 8d 5f 17 86 65 59 96 65 59 96 65 59 96 65 59 96 65 59 96 | .u/*
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.
*/
#ifndef L_OBJECT_H_
#define L_OBJECT_H_
#include "lua_api/l_base.h"
#include "irrlichttypes.h"
class ServerActiveObject;
class LuaEntitySAO;
class PlayerSAO;
class RemotePlayer;
/*
ObjectRef
*/
class ObjectRef : public ModApiBase {
private:
ServerActiveObject *m_object;
static const char className[];
static const luaL_reg methods[];
public:
static ObjectRef *checkobject(lua_State *L, int narg);
static ServerActiveObject* getobject(ObjectRef *ref);
private:
static LuaEntitySAO* getluaobject(ObjectRef *ref);
static PlayerSAO* getplayersao(ObjectRef *ref);
static RemotePlayer *getplayer(ObjectRef *ref);
// Exported functions
// garbage collector
static int gc_object(lua_State *L);
// remove(self)
static int l_remove(lua_State *L);
// getpos(self)
// returns: {x=num, y=num, z=num}
static int l_getpos(lua_State *L);
// setpos(self, pos)
static int l_setpos(lua_State *L);
// moveto(self, pos, continuous=false)
static int l_moveto(lua_State *L);
// punch(self, puncher, time_from_last_punch, tool_capabilities, dir)
static int l_punch(lua_State *L);
// right_click(self, clicker); clicker = an another ObjectRef
static int l_right_click(lua_State *L);
// set_hp(self, hp)
// hp = number of hitpoints (2 * number of hearts)
// returns: nil
static int l_set_hp(lua_State *L);
// get_hp(self)
// returns: number of hitpoints (2 * number of hearts)
// 0 if not applicable to this type of object
static int l_get_hp(lua_State *L);
// get_inventory(self)
static in 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0a00 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0a20 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0a40 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0a60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0a80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0aa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0ac0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0ae0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
0b00 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
// get_physics_override(self)
static int l_get_physics_override(lua_State *L);
// set_animation(self, frame_range, frame_speed, frame_blend, frame_loop)
static int l_set_animation(lua_State *L);
// get_animation(self)
static int l_get_animation(lua_State *L);
// set_bone_position(self, std::string bone, v3f position, v3f rotation)
static int l_set_bone_position(lua_State *L);
// get_bone_position(self, bone)
static int l_get_bone_position(lua_State *L);
// set_attach(self, parent, bone, position, rotation)
static int l_set_attach(lua_State *L);
// get_attach(self)
static int l_get_attach(lua_State *L);
// set_detach(self)
static int l_set_detach(lua_State *L);
// set_properties(self, properties)
static int l_set_properties(lua_State *L);
// get_properties(self)
static int l_get_properties(lua_State *L);
// is_player(self)
static int l_is_player(lua_State *L);
/* LuaEntitySAO-only */
// setvelocity(self, {x=num, y=num, z=num})
static int l_setvelocity(lua_State *L);
// getvelocity(self)
static int l_getvelocity(lua_State *L);
// setacceleration(self, {x=num, y=num, z=num})
static int l_setacceleration(lua_State *L);
// getacceleration(self)
static int l_getacceleration(lua_State *L);
// setyaw(self, radians)
static int l_setyaw(lua_State *L);
// getyaw(self)
static int l_getyaw(lua_State *L);
// settexturemod(self, mod)
static int l_settexturemod(lua_State *L);
// setsprite(self, p={x=0,y=0}, num_frames=1, framelength=0.2,
// select_horiz_by_yawpitch=false)
static int l_setsprite(lua_State *L);
// DEPRECATED
// get_entity_name(self)
static int l_get_entity_name(lua_State *L);
// get_luaentity(self)
static int l_get_luaentity(lua_State *L);
/* Player-only */
// is_player_connected(self)
static int l_is_player_connected(lua_State *L);
// get_player_name(self)
static int l_get_player_name(lua_State *L);
// get_player_velocity(self)
static int l_get_player_velocity(lua_State *L);
// get_look_dir(self)
static int l_get_look_dir(lua_State *L);
// DEPRECATED
// get_look_pitch(self)
static int l_get_look_pitch(lua_State *L);
// DEPRECATED
// get_look_yaw(self)
static int l_get_look_yaw(lua_State *L);
// get_look_pitch2(self)
static int l_get_look_vertical(lua_State *L);
// get_look_yaw2(self)
static int l_get_look_horizontal(lua_State *L);
// set_look_vertical(self, radians)
static int l_set_look_vertical(lua_State *L);
// set_look_horizontal(self, radians)
static int l_set_look_horizontal(lua_State *L);
// DEPRECATED
// set_look_pitch(self, radians)
static int l_set_look_pitch(lua_State *L);
// DEPRECATED
// set_look_yaw(self, radians)
static int l_set_look_yaw(lua_State *L);
// set_breath(self, breath)
static int l_set_breath(lua_State *L);
// get_breath(self, breath)
static int l_get_breath(lua_State *L);
// set_inventory_formspec(self, formspec)
static int l_set_inventory_formspec(lua_State *L);
// get_inventory_formspec(self) -> formspec
static int l_get_inventory_formspec(lua_State *L);
// get_player_control(self)
static int l_get_player_control(lua_State *L);
// get_player_control_bits(self)
static int l_get_player_control_bits(lua_State *L);
// hud_add(self, id, form)
static int l_hud_add(lua_State *L);
// hud_rm(self, id)
static int l_hud_remove(lua_State *L);
// hud_change(self, id, stat, data)
static int l_hud_change(lua_State *L);
// hud_get_next_id(self)
static u32 hud_get_next_id(lua_State *L);
// hud_get(self, id)
static int l_hud_get(lua_State *L);
// hud_set_flags(self, flags)
static int l_hud_set_flags(lua_State *L);
// hud_get_flags()
static int l_hud_get_flags(lua_State *L);
// hud_set_hotbar_itemcount(self, hotbar_itemcount)
static int l_hud_set_hotbar_itemcount(lua_State *L);
// hud_get_hotbar_itemcount(self)
static int l_hud_get_hotbar_itemcount(lua_State *L);
// hud_set_hotbar_image(self, name)
static int l_hud_set_hotbar_image(lua_State *L);
// hud_get_hotbar_image(self)
static int l_hud_get_hotbar_image(lua_State *L);
// hud_set_hotbar_selected_image(self, name)
static int l_hud_set_hotbar_selected_image(lua_State *L);
// hud_get_hotbar_selected_image(self)
static int l_hud_get_hotbar_selected_image(lua_State *L);
// set_sky(self, type, list)
static int l_set_sky(lua_State *L);
// get_sky(self, type, list)
static int l_get_sky(lua_State *L);
// override_day_night_ratio(self, type)
static int l_override_day_night_ratio(lua_State *L);
// get_day_night_ratio(self)
static int l_get_day_night_ratio(lua_State *L);
// set_local_animation(self, {stand/idle}, {walk}, {dig}, {walk+dig}, frame_speed)
static int l_set_local_animation(lua_State *L);
// get_local_animation(self)
static int l_get_local_animation(lua_State *L);
// set_eye_offset(self, v3f first pv, v3f third pv)
static int l_set_eye_offset(lua_State *L);
// get_eye_offset(self)
static int l_get_eye_offset(lua_State *L);
// set_nametag_attributes(self, attributes)
static int l_set_nametag_attributes(lua_State *L);
// get_nametag_attributes(self)
static int l_get_nametag_attributes(lua_State *L);
public:
ObjectRef(ServerActiveObject *object);
~ObjectRef();
// Creates an ObjectRef and leaves it on top of stack
// Not callable from Lua; all references are created on the C side.
static void create(lua_State *L, ServerActiveObject *object);
static void set_null(lua_State *L);
static void Register(lua_State *L);
};
#endif /* L_OBJECT_H_ */