summaryrefslogtreecommitdiff
path: root/src/3rdparty/squirrel/samples/classattributes.nut
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-19 20:06:51 +0000
committerrubidium <rubidium@openttd.org>2014-09-19 20:06:51 +0000
commit79ca66eb673c710432d1f4e51af70730a09a82c8 (patch)
tree5c26b5456711549c69e6d7c74b6e966072670cb6 /src/3rdparty/squirrel/samples/classattributes.nut
parentbd0cd31d4b4e13dcf99c3b4170069d9eb08a91cf (diff)
downloadopenttd-79ca66eb673c710432d1f4e51af70730a09a82c8.tar.xz
(svn r26853) -Cleanup [Squirrel]: remove some stuff that we never did and especially never should use
Diffstat (limited to 'src/3rdparty/squirrel/samples/classattributes.nut')
-rw-r--r--src/3rdparty/squirrel/samples/classattributes.nut35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/3rdparty/squirrel/samples/classattributes.nut b/src/3rdparty/squirrel/samples/classattributes.nut
deleted file mode 100644
index 01232002c..000000000
--- a/src/3rdparty/squirrel/samples/classattributes.nut
+++ /dev/null
@@ -1,35 +0,0 @@
-class Foo {
- //constructor
- constructor(a)
- {
- testy = ["stuff",1,2,3];
- }
- //attributes of PrintTesty
- </ test = "freakin attribute"/>
- function PrintTesty()
- {
- foreach(i,val in testy)
- {
- ::print("idx = "+i+" = "+val+" \n");
- }
- }
- //attributes of testy
- </ flippy = 10 , second = [1,2,3] />
- testy = null;
-
-}
-
-foreach(member,val in Foo)
-{
- ::print(member+"\n");
- local attr;
- if((attr = Foo.getattributes(member)) != null) {
- foreach(i,v in attr)
- {
- ::print("\t"+i+" = "+(typeof v)+"\n");
- }
- }
- else {
- ::print("\t<no attributes>\n")
- }
-}