This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local overrideAreaOwnerCheck = false | |
local dismissTerrainDeformation = false | |
-- ... | |
function PlaceAnywhere:loadMap(name) | |
-- ... | |
-- override area owner check | |
PlacementScreenController.isPlacementValid = Utils.overwrittenFunction(PlacementScreenController.isPlacementValid, PlaceAnywhere.isPlacementValid); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---@param fSrc function | |
---@param fDst function | |
---@param fResultCallback function | |
function hook(fSrc, fDst, fResultCallback) | |
return function(...) | |
--DebugUtil.printCallingFunctionLocation() | |
if type(fResultCallback) == 'function' then | |
if type(fDst) == 'function' then | |
fDst(...) | |
end |