mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-06 23:15:47 -07:00
Use HFSM for unit AI. Support queuing orders. Automatically attack back when attacked. Automatically gather from farms after building them. This was SVN commit r7775.
7 lines
289 B
JavaScript
7 lines
289 B
JavaScript
Engine.RegisterInterface("Foundation");
|
|
|
|
// Message sent from Foundation to its own entity when construction
|
|
// has been completed.
|
|
// Units can watch for this and change task once it's complete.
|
|
// Data: { entity: 123, newentity: 234 }
|
|
Engine.RegisterMessageType("ConstructionFinished");
|