aboutsummaryrefslogtreecommitdiff
path: root/examples/oop_example.lua
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-05-25 16:07:34 +0800
committerDeterminant <[email protected]>2015-05-25 16:07:34 +0800
commitbe922fa355fe385b45a2720d48eaf0c809e1874a (patch)
tree6ec8747f0463ffb36445d7cadec567c00b8fdbdf /examples/oop_example.lua
parent3036cc0f7597d72a36b1923ab5e0c56a4490be31 (diff)
move example files to a dedicated directory
Diffstat (limited to 'examples/oop_example.lua')
-rw-r--r--examples/oop_example.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/oop_example.lua b/examples/oop_example.lua
new file mode 100644
index 0000000..45da36e
--- /dev/null
+++ b/examples/oop_example.lua
@@ -0,0 +1,7 @@
+a = nerv.Point()
+print(a:get_sinx())
+a:set_x(3.14)
+print(a:get_sinx())
+print(a[2])
+a[2] = 3
+print(a[2])