0ad/binaries/data/mods/public/simulation/components/interfaces/AttackDetection.js
2013-10-06 04:49:38 +00:00

5 lines
246 B
JavaScript

Engine.RegisterInterface("AttackDetection");
// Message of the form { "player": 1, "event": { "target": 123 , "position": { "x": 123, "z": 456 }, "time": 1, }.
// sent when a new attack is detected.
Engine.RegisterMessageType("AttackDetected");