FreeKill/lua/freekill.lua
Notify-ctrl a67175f8eb Room (#4)
* Run room in lua

* handle offline player

* Better toast and other

* delete useless stuff

* todo: edit profile

* use pch
2022-03-27 15:12:00 +08:00

29 lines
546 B
Lua

-- Fundemental script for FreeKill
-- Load mods, init the engine, etc.
package.path = package.path .. ";./lua/lib/?.lua"
.. ";./lua/core/?.lua"
-- load libraries
class = require "middleclass"
json = require "json"
require "sha256"
Util = require "util"
DebugMode = true
function pt(t)
for k, v in pairs(t) do
print(k, v)
end
end
-- load core classes
Sanguosha = require "engine"
General = require "general"
Card = require "card"
Skill = require "skill"
Player = require "player"
-- load packages