diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-10-10 18:04:16 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-10-10 18:04:16 +0200 |
commit | b68c36250dc73de93a7772ecf6d1749a8f46245d (patch) | |
tree | ae04f1b083c7c41e6e879305dec6970b69f6659f | |
parent | 786f375dd7cdcc6a92e3c7f4b027826629cd9baf (diff) | |
download | evtclib-b68c36250dc73de93a7772ecf6d1749a8f46245d.tar.gz evtclib-b68c36250dc73de93a7772ecf6d1749a8f46245d.tar.bz2 evtclib-b68c36250dc73de93a7772ecf6d1749a8f46245d.zip |
add AttackTarget, Targetable, MapId statechanges
-rw-r--r-- | src/event.rs | 2 | ||||
-rw-r--r-- | src/raw/types.rs | 6 |
2 files changed, 7 insertions, 1 deletions
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 |