@@ -150,9 +150,9 @@ int ObjectRef::l_remove(lua_State *L)
150
150
return 0 ;
151
151
}
152
152
153
- // getpos (self)
153
+ // get_pos (self)
154
154
// returns: {x=num, y=num, z=num}
155
- int ObjectRef::l_getpos (lua_State *L)
155
+ int ObjectRef::l_get_pos (lua_State *L)
156
156
{
157
157
NO_MAP_LOCK_REQUIRED;
158
158
ObjectRef *ref = checkobject (L, 1 );
@@ -169,8 +169,8 @@ int ObjectRef::l_getpos(lua_State *L)
169
169
return 1 ;
170
170
}
171
171
172
- // setpos (self, pos)
173
- int ObjectRef::l_setpos (lua_State *L)
172
+ // set_pos (self, pos)
173
+ int ObjectRef::l_set_pos (lua_State *L)
174
174
{
175
175
NO_MAP_LOCK_REQUIRED;
176
176
ObjectRef *ref = checkobject (L, 1 );
@@ -184,8 +184,8 @@ int ObjectRef::l_setpos(lua_State *L)
184
184
return 0 ;
185
185
}
186
186
187
- // moveto (self, pos, continuous=false)
188
- int ObjectRef::l_moveto (lua_State *L)
187
+ // move_to (self, pos, continuous=false)
188
+ int ObjectRef::l_move_to (lua_State *L)
189
189
{
190
190
NO_MAP_LOCK_REQUIRED;
191
191
ObjectRef *ref = checkobject (L, 1 );
@@ -821,8 +821,8 @@ int ObjectRef::l_get_nametag_attributes(lua_State *L)
821
821
822
822
/* LuaEntitySAO-only */
823
823
824
- // setvelocity (self, {x=num, y=num, z=num})
825
- int ObjectRef::l_setvelocity (lua_State *L)
824
+ // set_velocity (self, {x=num, y=num, z=num})
825
+ int ObjectRef::l_set_velocity (lua_State *L)
826
826
{
827
827
NO_MAP_LOCK_REQUIRED;
828
828
ObjectRef *ref = checkobject (L, 1 );
@@ -834,8 +834,8 @@ int ObjectRef::l_setvelocity(lua_State *L)
834
834
return 0 ;
835
835
}
836
836
837
- // getvelocity (self)
838
- int ObjectRef::l_getvelocity (lua_State *L)
837
+ // get_velocity (self)
838
+ int ObjectRef::l_get_velocity (lua_State *L)
839
839
{
840
840
NO_MAP_LOCK_REQUIRED;
841
841
ObjectRef *ref = checkobject (L, 1 );
@@ -847,8 +847,8 @@ int ObjectRef::l_getvelocity(lua_State *L)
847
847
return 1 ;
848
848
}
849
849
850
- // setacceleration (self, {x=num, y=num, z=num})
851
- int ObjectRef::l_setacceleration (lua_State *L)
850
+ // set_acceleration (self, {x=num, y=num, z=num})
851
+ int ObjectRef::l_set_acceleration (lua_State *L)
852
852
{
853
853
NO_MAP_LOCK_REQUIRED;
854
854
ObjectRef *ref = checkobject (L, 1 );
@@ -861,8 +861,8 @@ int ObjectRef::l_setacceleration(lua_State *L)
861
861
return 0 ;
862
862
}
863
863
864
- // getacceleration (self)
865
- int ObjectRef::l_getacceleration (lua_State *L)
864
+ // get_acceleration (self)
865
+ int ObjectRef::l_get_acceleration (lua_State *L)
866
866
{
867
867
NO_MAP_LOCK_REQUIRED;
868
868
ObjectRef *ref = checkobject (L, 1 );
@@ -874,8 +874,8 @@ int ObjectRef::l_getacceleration(lua_State *L)
874
874
return 1 ;
875
875
}
876
876
877
- // setyaw (self, radians)
878
- int ObjectRef::l_setyaw (lua_State *L)
877
+ // set_yaw (self, radians)
878
+ int ObjectRef::l_set_yaw (lua_State *L)
879
879
{
880
880
NO_MAP_LOCK_REQUIRED;
881
881
ObjectRef *ref = checkobject (L, 1 );
@@ -887,8 +887,8 @@ int ObjectRef::l_setyaw(lua_State *L)
887
887
return 0 ;
888
888
}
889
889
890
- // getyaw (self)
891
- int ObjectRef::l_getyaw (lua_State *L)
890
+ // get_yaw (self)
891
+ int ObjectRef::l_get_yaw (lua_State *L)
892
892
{
893
893
NO_MAP_LOCK_REQUIRED;
894
894
ObjectRef *ref = checkobject (L, 1 );
@@ -900,8 +900,8 @@ int ObjectRef::l_getyaw(lua_State *L)
900
900
return 1 ;
901
901
}
902
902
903
- // settexturemod (self, mod)
904
- int ObjectRef::l_settexturemod (lua_State *L)
903
+ // set_texture_mod (self, mod)
904
+ int ObjectRef::l_set_texture_mod (lua_State *L)
905
905
{
906
906
NO_MAP_LOCK_REQUIRED;
907
907
ObjectRef *ref = checkobject (L, 1 );
@@ -913,9 +913,9 @@ int ObjectRef::l_settexturemod(lua_State *L)
913
913
return 0 ;
914
914
}
915
915
916
- // setsprite (self, p={x=0,y=0}, num_frames=1, framelength=0.2,
916
+ // set_sprite (self, p={x=0,y=0}, num_frames=1, framelength=0.2,
917
917
// select_horiz_by_yawpitch=false)
918
- int ObjectRef::l_setsprite (lua_State *L)
918
+ int ObjectRef::l_set_sprite (lua_State *L)
919
919
{
920
920
NO_MAP_LOCK_REQUIRED;
921
921
ObjectRef *ref = checkobject (L, 1 );
@@ -1774,9 +1774,9 @@ const char ObjectRef::className[] = "ObjectRef";
1774
1774
const luaL_reg ObjectRef::methods[] = {
1775
1775
// ServerActiveObject
1776
1776
luamethod (ObjectRef, remove ),
1777
- luamethod (ObjectRef, getpos),
1778
- luamethod (ObjectRef, setpos),
1779
- luamethod (ObjectRef, moveto),
1777
+ luamethod_aliased (ObjectRef, get_pos , getpos),
1778
+ luamethod_aliased (ObjectRef, set_pos , setpos),
1779
+ luamethod_aliased (ObjectRef, move_to , moveto),
1780
1780
luamethod (ObjectRef, punch),
1781
1781
luamethod (ObjectRef, right_click),
1782
1782
luamethod (ObjectRef, set_hp),
@@ -1800,14 +1800,14 @@ const luaL_reg ObjectRef::methods[] = {
1800
1800
luamethod (ObjectRef, set_nametag_attributes),
1801
1801
luamethod (ObjectRef, get_nametag_attributes),
1802
1802
// LuaEntitySAO-only
1803
- luamethod (ObjectRef, setvelocity),
1804
- luamethod (ObjectRef, getvelocity),
1805
- luamethod (ObjectRef, setacceleration),
1806
- luamethod (ObjectRef, getacceleration),
1807
- luamethod (ObjectRef, setyaw),
1808
- luamethod (ObjectRef, getyaw),
1809
- luamethod (ObjectRef, settexturemod ),
1810
- luamethod (ObjectRef, setsprite),
1803
+ luamethod_aliased (ObjectRef, set_velocity , setvelocity),
1804
+ luamethod_aliased (ObjectRef, get_velocity , getvelocity),
1805
+ luamethod_aliased (ObjectRef, set_acceleration , setacceleration),
1806
+ luamethod_aliased (ObjectRef, get_acceleration , getacceleration),
1807
+ luamethod_aliased (ObjectRef, set_yaw , setyaw),
1808
+ luamethod_aliased (ObjectRef, get_yaw , getyaw),
1809
+ luamethod_aliased (ObjectRef, set_texture_mod, set_texturemod ),
1810
+ luamethod_aliased (ObjectRef, set_sprite , setsprite),
1811
1811
luamethod (ObjectRef, get_entity_name),
1812
1812
luamethod (ObjectRef, get_luaentity),
1813
1813
// Player-only
0 commit comments