mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-11-13 11:00:06 +00:00
changed class -> proto
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class Vector
|
||||
proto Vector
|
||||
function __init(self)
|
||||
self.vector = {}
|
||||
self.x = 0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class test
|
||||
proto test
|
||||
function __init(self, x)
|
||||
self.setArg(x)
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Test
|
||||
proto Test
|
||||
function __init(self, x)
|
||||
self.x = x
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// crafts a dummy class
|
||||
class test end
|
||||
// crafts a dummy proto
|
||||
proto test end
|
||||
|
||||
// instance of test
|
||||
var obj = test()
|
||||
|
||||
Reference in New Issue
Block a user