From b68c36250dc73de93a7772ecf6d1749a8f46245d Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 10 Oct 2018 18:04:16 +0200 Subject: add AttackTarget, Targetable, MapId statechanges --- src/event.rs | 2 +- src/raw/types.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/event.rs b/src/event.rs index 14365b7..9329d50 100644 --- a/src/event.rs +++ b/src/event.rs @@ -200,7 +200,7 @@ impl Event { reward_type: raw_event.value, }, // XXX: implement proper handling of those events! - CbtStateChange::BuffInitial | CbtStateChange::Position | CbtStateChange::Velocity | CbtStateChange::Facing | CbtStateChange::TeamChange => { + CbtStateChange::BuffInitial | CbtStateChange::Position | CbtStateChange::Velocity | CbtStateChange::Facing | CbtStateChange::TeamChange | CbtStateChange::AttackTarget | CbtStateChange::Targetable | CbtStateChange::MapId => { return None } diff --git a/src/raw/types.rs b/src/raw/types.rs index fb99708..07d4312 100644 --- a/src/raw/types.rs +++ b/src/raw/types.rs @@ -132,6 +132,12 @@ pub enum CbtStateChange { Facing, /// src_agent change, dst_agent new team id TeamChange, + /// src_agent is an attacktarget, dst_agent is the parent agent (gadget type), value is the current targetable state + AttackTarget, + /// dst_agent is the new target-able state (0 = no, 1 = yes. default yes) + Targetable, + /// src_agent is map id + MapId, } /// Combat buff remove type -- cgit v1.2.3