mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
4e25c032e6
* TriggerSkill * update type comment * events of phases * lua annotation * change style of enums * clear lua stack * multi lua_State at server side * disable addPlayer when room is full or started * logic:trigger Co-authored-by: Notify-ctrl <notify-ctrl@qq.com>
29 lines
617 B
Lua
29 lines
617 B
Lua
-- Fundemental script for FreeKill
|
|
-- Load mods, init the engine, etc.
|
|
|
|
package.path = package.path .. ";./lua/lib/?.lua"
|
|
.. ";./lua/?.lua"
|
|
|
|
-- load libraries
|
|
|
|
class = require "middleclass"
|
|
json = require "json"
|
|
|
|
dofile "lua/lib/sha256.lua"
|
|
dofile "lua/core/util.lua"
|
|
dofile "lua/core/debug.lua"
|
|
|
|
math.randomseed(os.time())
|
|
|
|
-- 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
|
|
dofile "lua/fk_ex.lua"
|
|
Fk = Engine:new()
|