ID:160148
 
obj/example/test
obj/example/test1
obj/example/test2


If I have those as exampled, how would I add them all to a list without typing them all out, and using a for() loop.
That? I'm not sure though.
for(var/obj/example/E)
list.Add(E)
You can use the typesof() proc but you'll still need a loop.

var/list/Examples = new
for(var/E in typesof(/obj/example)-/obj/example)
Examples += new E()
In response to Xooxer
I was on the right track ^-^
In response to Mizukouken Ketsu
I worded the original post wrong, I meant to say "using a loop, but not typing them all out"

Anyways, I think my question has been answered. Thanks.
In response to Xooxer
(Small note: I'd prefer to use -= or Remove() instead of the - operator; especially if you'll need to remove more than one type.)