/
sekta
/
halfengine
Обзор
Документация
Войти
/
sekta
/
halfengine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
Аналитика
Безопасность
master
engine/init.lua
35 строк
733 B
sekta
0.5rfs
02 дек 2024, 07:42
02 дек 2024, 07:42
7ca2af2
Код
Авторство
О чём код?
local PATH = ... .. "." --[[------------------------]]-- half = { _VERSION = "0.5rfs", game_conf = nil } ---@return table or boolean function half.get_config() local conf = half.game_conf if conf == nil then local success, t = pcall(require, "game.config") if not success or not t or type(t) ~= "table" then half.game_conf = false return false end conf = t half.game_conf = t end return conf end middleclass = require(PATH .. "thirdparty.middleclass") vector = require(PATH .. "thirdparty.vector") half.util = require(PATH .. "util") half.class = require(PATH .. "class") require(PATH .. "services") function half.load() physics = half.load_service("physics") end