Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # test the no export option
- node.functions("uiIgnore").ignore
- e.module "UI" do |m|
- m.module "Math" do |m_math|
- #function wrapping
- m_math.includes node.functions("uiAdd").wrap_as("add")
- m_math.includes node.functions("ui_Subtract").wrap_as("subtract")
- m_math.includes node.namespaces("DMath").functions("divide")
- end
- #class wrapping
- vector = node.classes("C_UIVector").wrap_as("Vector")
- vector.methods("x_").wrap_as("x")
- vector.methods("set_x").wrap_as("x=")
- m.includes vector
- #mapping stray functions to singleton methods
- modder = node.namespaces("I_LEARN_C").classes("Modder").wrap_as("Modulus")
- modder.includes node.namespaces("I_LEARN_C").functions("mod")
- modder.includes node.namespaces("I_LEARN_C").functions("mod2").wrap_as("method_mod").as_method
- m.includes modder
- end
Add Comment
Please, Sign In to add comment