forked from BeeStation/BeeStation-Hornet
-
Notifications
You must be signed in to change notification settings - Fork 0
[] operator
EvilDragonfiend edited this page Nov 7, 2024
·
1 revision
/datum/tester
var/obj/O = new /obj{name = "TEST OBJ"}
var/mob/M = new /mob{name = "TEST mob"}
/datum/tester/operator[](idx)
world.log << "got index: [idx]"
if(idx == "obj") return O
return M
/datum/tester/proc/tellme()
world.log << "I am called"
/proc/main()
var/datum/tester/D = new()
D["obj"]
asd