0ad/binaries/data/mods/_test.scriptinterface/module/restriction/import.js
phosit 05869454e5 Disalow importing some files
Not all modules should be able to load all other modules. A predicate
function can to be passed to the `ScriptInterface`. That function
returns whether the module is allowed to loat the module. If no
predicate is passed in no modules can be loaded through that
`ScriptInterface`.
2025-06-06 17:36:35 +02:00

1 line
40 B
JavaScript

import "restriction/disallowedfile.js";