Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Classes/MiniScript/classes.mini
Normal file
11
Task/Classes/MiniScript/classes.mini
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// MiniScript is prototype based
|
||||
Weapon = { "name": "Sword", "damage": 3 }
|
||||
Weapon.slice = function()
|
||||
print "Did " + self.damage + " damage with " + self.name
|
||||
end function
|
||||
|
||||
wep = new Weapon // Same as: wep = { "__isa": Weapon }
|
||||
|
||||
wep.name = "Lance"
|
||||
|
||||
wep.slice
|
||||
Loading…
Add table
Add a link
Reference in a new issue