Skip to content

How to best expose Util methods to CC that require access to mod config options #947

Answered by SquidDev
pupnewfster asked this question in Q&A
Discussion options

You must be logged in to vote

Would ILuaAPI do what you want? This allows you to register a global API, so people could do mekanism.joulesToFE(123) or something.

It's not a perfect solution - new globals are always gross - but I'm not sure of a better solution here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pupnewfster
Comment options

Answer selected by pupnewfster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants