37 lines
678 B
Lua
37 lines
678 B
Lua
-- Fundemental script for FreeKill
|
|
-- Load mods, init the engine, etc.
|
|
|
|
package.path = package.path .. ";./lua/lib/?.lua"
|
|
.. ";./lua/?.lua"
|
|
|
|
-- load libraries
|
|
|
|
---@type class
|
|
class = require "middleclass"
|
|
|
|
---@type json
|
|
json = require "json"
|
|
|
|
require "sha256"
|
|
Util = require "core.util"
|
|
math.randomseed(os.time())
|
|
|
|
DebugMode = true
|
|
|
|
function pt(t)
|
|
for k, v in pairs(t) do
|
|
print(k, v)
|
|
end
|
|
end
|
|
|
|
-- load core classes
|
|
Engine = require "core.engine"
|
|
Package = require "core.package"
|
|
General = require "core.general"
|
|
Card = require "core.card"
|
|
Skill = require "core.skill"
|
|
Player = require "core.player"
|
|
|
|
-- load packages
|
|
Fk = Engine:new()
|