Revert "function description LevelFuncs.OnUseItem"

This reverts commit 2478afca68.
This commit is contained in:
davidmarr 2024-11-08 20:19:10 +01:00
parent 2478afca68
commit 9e94324e93

View file

@ -1108,7 +1108,7 @@ __The order of loading is as follows:__
@tfield function(float) OnLoop Will be called during the game's update loop,
and provides the delta time (a float representing game time since last call) via its argument.
@tfield function OnSave Will be called when the player saves the game, just *before* data is saved
@tfield function(EndReason) OnEnd Will be called when leaving a level. This includes finishing it, exiting to the menu, or loading a save in a different level. It can take an `EndReason` arg:
@tfield function OnEnd(EndReason) Will be called when leaving a level. This includes finishing it, exiting to the menu, or loading a save in a different level. It can take an `EndReason` arg:
EXITTOTITLE
LEVELCOMPLETE
@ -1122,14 +1122,6 @@ For example:
print("death")
end
end
@tfield function(obj) OnUseItem Will be called when the player will use an inventory item
For example:
LevelFuncs.OnUseItem = function(obj)
if obj == Objects.ObjID.PICKUP_ITEM2 then
print("Good job!")
end
end
@table LevelFuncs
*/