castle_gates = {}
local modpath = minetest.get_modpath(minetest.get_current_modname())
dofile(modpath.."/gate_functions.lua")
dofile(modpath.."/gates.lua")