FreeKill/lua/freekill.lua
Notify-ctrl 4e25c032e6
Skill (#9)
* 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>
2022-04-01 20:51:01 +08:00

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()