noita-mapcap/files/libraries/noita-api/init.lua
David Vogel 931c4df18a Refactoring, fixes and cleanup
- Move utils into Noita API wrapper
- Always overwrite require, with a fallback to the original
- Add library directory of mod to package.path, instead of the files directory
- Add Noita data/scripts/lib to package.path
- Fix dofile error handling
- Fix require not working right when module returns false
- Add init.lua to Noita API wrapper, that contains a table of all modules
- Fix Utils.GetSpecialDirectory
- Update README.md
2022-07-23 20:43:04 +02:00

15 lines
408 B
Lua

-- Copyright (c) 2022 David Vogel
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
return {
Camera = require("noita-api.camera"),
Component = require("noita-api.component"),
Debug = require("noita-api.debug"),
Entity = require("noita-api.entity"),
JSON = require("noita-api.json"),
Utils = require("noita-api.utils"),
Vec2 = require("noita-api.vec2"),
}