mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Component Model + PoC Mob (#13866)
* 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
This commit is contained in:
13
code/modules/components/ai/ai_component.dm
Normal file
13
code/modules/components/ai/ai_component.dm
Normal file
@@ -0,0 +1,13 @@
|
||||
/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)
|
||||
Reference in New Issue
Block a user