From f6602040910f461b465d78307ffd81bda1be55da Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 6 Sep 2018 03:47:32 +0200 Subject: add new enum values --- src/event.rs | 2 +- src/raw/types.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3