Class MathEnvironment
java.lang.Object
com.prineside.tdi2.managers.script.MathEnvironment
Experimental / work in progress
No point in using it right now
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Prepared math expressions in a simplified Lua environment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
MathEnvironment
public MathEnvironment()
-
-
Method Details
-
prepare
- Parameters:
expr
- like "a, b -> a * b" Examples: a -> a < 7 and a * 2.5 or a * 0.3 a, b -> a * b If contains "return" string, can be expressed as a regular function: a -> if a < 0.5 then return 0 else return a * 2 end
-
cached
-