2022-01-24 10:23:08 +08:00
|
|
|
-- Fundemental script for FreeKill
|
|
|
|
-- Load mods, init the engine, etc.
|
|
|
|
|
2022-03-25 12:28:07 +08:00
|
|
|
package.path = package.path .. ";./lua/lib/?.lua"
|
|
|
|
.. ";./lua/core/?.lua"
|
2022-01-24 10:23:08 +08:00
|
|
|
|
|
|
|
-- load libraries
|
2022-03-25 12:28:07 +08:00
|
|
|
class = require "middleclass"
|
|
|
|
json = require "json"
|
2022-03-27 14:49:41 +08:00
|
|
|
require "sha256"
|
2022-03-25 12:28:07 +08:00
|
|
|
Util = require "util"
|
2022-01-24 10:23:08 +08:00
|
|
|
|
2022-03-23 19:40:28 +08:00
|
|
|
DebugMode = true
|
|
|
|
|
2022-01-24 10:23:08 +08:00
|
|
|
function pt(t)
|
|
|
|
for k, v in pairs(t) do
|
|
|
|
print(k, v)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
-- load core classes
|
2022-03-25 12:28:07 +08:00
|
|
|
Sanguosha = require "engine"
|
|
|
|
General = require "general"
|
|
|
|
Card = require "card"
|
|
|
|
Skill = require "skill"
|
2022-03-27 14:49:41 +08:00
|
|
|
Player = require "player"
|
2022-03-25 12:28:07 +08:00
|
|
|
|
|
|
|
-- load packages
|