bb592b2436
Also fleshed out entity_api.cpp, but that's just filler.
22 lines
588 B
Lua
22 lines
588 B
Lua
print("Lua script check")
|
|
|
|
mapMaker = require "map_maker"
|
|
mapSaver = require "map_saver"
|
|
roomSystem = require "room_system"
|
|
waypointSystem = require "waypoint_system"
|
|
|
|
local function dumpTable(t)
|
|
print(t)
|
|
for k, v in pairs(t) do
|
|
print("",k,v)
|
|
end
|
|
end
|
|
|
|
dumpTable(waypointSystem)
|
|
|
|
--NOTE: room 0 is the first that the client asks for, therefore it must exist
|
|
local overworld, uid = roomSystem.RoomManager.CreateRoom("overworld")
|
|
roomSystem.Room.Initialize(overworld, "overworld.bmp", mapSaver.Load, mapSaver.Save, mapMaker.debugIsland, mapSaver.Save)
|
|
|
|
print("Finished the lua script")
|