mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
WIP synced wang generator.
This commit is contained in:
parent
9ecf5a25c3
commit
c6524b07bb
4 changed files with 31 additions and 1 deletions
5
quant.ew/files/system/wang_hooks/director_helpers.lua
Normal file
5
quant.ew/files/system/wang_hooks/director_helpers.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
local orig_RegisterSpawnFunction = RegisterSpawnFunction
|
||||
|
||||
function RegisterSpawnFunction(color, fn_name)
|
||||
|
||||
end
|
22
quant.ew/files/system/wang_hooks/wang_hooks.lua
Normal file
22
quant.ew/files/system/wang_hooks/wang_hooks.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
ModLuaFileAppend("data/scripts/director_helpers.lua", "mods/quant.ew/files/system/wang_hooks/director_helpers.lua")
|
||||
|
||||
local module = {}
|
||||
|
||||
local module.files_with_spawnhooks = {}
|
||||
|
||||
for line in string.gmatch(ModTextFileGetContent("mods/quant.ew/files/system/wang_hooks/files_with_spawnhooks.txt"), "(.-)\n") do
|
||||
-- print("Interned", line)
|
||||
table.insert(module.files_with_spawnhooks, line)
|
||||
end
|
||||
|
||||
local function patch_file(filename)
|
||||
|
||||
end
|
||||
|
||||
function module.on_late_init()
|
||||
for _, filename in ipairs(module.files_with_spawnhooks) do
|
||||
patch_file(filename)
|
||||
end
|
||||
end
|
||||
|
||||
return module
|
|
@ -375,7 +375,9 @@ end
|
|||
function OnModInit() end
|
||||
|
||||
|
||||
function OnModPostInit() end
|
||||
function OnModPostInit()
|
||||
ctx.hook.on_late_init()
|
||||
end
|
||||
|
||||
function OnPlayerDied(player_entity)
|
||||
ctx.hook.on_player_died(player_entity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue