Makeclass cleaned up
This commit is contained in:
@@ -6,4 +6,4 @@
|
||||
inspect.lua
|
||||
ut-table.lua
|
||||
ut-globaldb.lua
|
||||
|
||||
player.lua
|
||||
|
||||
24
luprex/core/lua/player.lua
Normal file
24
luprex/core/lua/player.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
maketangible('player')
|
||||
|
||||
function player.interface(actor, place, gui)
|
||||
gui:menu_item("North")
|
||||
gui:menu_item("South")
|
||||
gui:menu_item("East")
|
||||
gui:menu_item("West")
|
||||
end
|
||||
|
||||
function player.action.north(actor, place, gui)
|
||||
print("Moving north")
|
||||
end
|
||||
|
||||
function player.action.south(actor, place, gui)
|
||||
print("Moving south")
|
||||
end
|
||||
|
||||
function player.action.east(actor, place, gui)
|
||||
print("Moving east")
|
||||
end
|
||||
|
||||
function player.action.west(actor, place, gui)
|
||||
print("Moving west")
|
||||
end
|
||||
Reference in New Issue
Block a user