aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2018-10-10 18:04:16 +0200
committerDaniel Schadt <kingdread@gmx.de>2018-10-10 18:04:16 +0200
commitb68c36250dc73de93a7772ecf6d1749a8f46245d (patch)
treeae04f1b083c7c41e6e879305dec6970b69f6659f /src
parent786f375dd7cdcc6a92e3c7f4b027826629cd9baf (diff)
downloadevtclib-b68c36250dc73de93a7772ecf6d1749a8f46245d.tar.gz
evtclib-b68c36250dc73de93a7772ecf6d1749a8f46245d.tar.bz2
evtclib-b68c36250dc73de93a7772ecf6d1749a8f46245d.zip
add AttackTarget, Targetable, MapId statechanges
Diffstat (limited to 'src')
-rw-r--r--src/event.rs2
-rw-r--r--src/raw/types.rs6
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