/datum/robot/module_tool_creator
Stub parent.
Allows for a tool (or lists of tools) to be created and configured properly.
Configuration includes correctly setting them up for inclusion in a robot module.
Configuration can include other processing, e.g. random generation.
Procs | |
apply_to_module | Instantiates contents and adds to a specific module. |
---|---|
instantiate | Stub, used to instantiate tool(s).
Ensure setup is called when defining behavior. |
setup | Stub proc. Used to alter/configure instantiated tool(s). |
Proc Details
apply_to_module
Instantiates contents and adds to a specific module.
-
return {(/obj/item|/list</obj/item>)} result - Added contents
instantiate
Stub, used to instantiate tool(s).
Ensure setup
is called when defining behavior.
-
proxy_loc {/atom} - Location to create contents
-
return {(/obj/item|/list</obj/item>)} result
setup
Stub proc. Used to alter/configure instantiated tool(s).
-
contents {(/obj/item|/list</obj/item>)} - Instantiated contents
-
proxy_loc {/atom} - Location used in
instantiate
, in case needed -
return {(/obj/item|/list</obj/item>)} result - Altered/configured instantiated item(s) (may not be same instance(s) as argument)