aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2018-09-06 03:47:32 +0200
committerDaniel Schadt <kingdread@gmx.de>2018-09-06 03:47:32 +0200
commitf6602040910f461b465d78307ffd81bda1be55da (patch)
tree25000c06ec9411facad8c55d232cad3af800b11d /src
parent2ac9d19ef91545a43dfde2bbdd986090695454d1 (diff)
downloadevtclib-f6602040910f461b465d78307ffd81bda1be55da.tar.gz
evtclib-f6602040910f461b465d78307ffd81bda1be55da.tar.bz2
evtclib-f6602040910f461b465d78307ffd81bda1be55da.zip
add new enum values
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 4d25a9f..f24df69 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::BuffInitial | CbtStateChange::Position | CbtStateChange::Velocity | CbtStateChange::Facing | CbtStateChange::TeamChange => {
return None
}
diff --git a/src/raw/types.rs b/src/raw/types.rs
index 2453350..5d4ee10 100644
--- a/src/raw/types.rs
+++ b/src/raw/types.rs
@@ -36,6 +36,8 @@ pub enum CbtResult {
Blind,
/// Physical hit was the killing blow
KillingBlow,
+ /// Hit was downing hit.
+ Downed,
/// Field is not used in this kind of event.
None,
}
@@ -130,6 +132,10 @@ pub enum CbtStateChange {
Position,
/// src_agent changed, cast float* v = (float*)&dst_agent, access as x/y/z (float[3])
Velocity,
+ /// src_agent changed, cast float* f = (float*)&dst_agent, access as x/y (float[2])
+ Facing,
+ /// src_agent change, dst_agent new team id
+ TeamChange,
}
/// Combat buff remove type