mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
* Initial work on component mobs. * Revert simple_animal.dm * Fix movement. * Component signals are now #defines. * Fix magic number in atmos.dm * Added basic melee attacks. * Get rid of test spam
14 lines
384 B
Plaintext
14 lines
384 B
Plaintext
/datum/component/ai
|
|
var/datum/component/controller/controller
|
|
|
|
var/state=0 // AI_STATE_* of the AI.
|
|
|
|
/datum/component/ai/RecieveSignal(var/message_type, var/list/args)
|
|
switch(message_type)
|
|
if(COMSIG_STATE) // list("name"="statename")
|
|
state = args["name"]
|
|
|
|
/datum/component/ai/New(var/datum/component_container/CC)
|
|
..(CC)
|
|
controller=GetComponent(/datum/component/controller)
|