From 5eb6f439793ef1157fde26335e444208bfbde170 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 4 Apr 2020 14:30:18 +0200 Subject: add more events The amount of non-properly-implemented events is growing --- src/event.rs | 2 +- src/raw/types.rs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/event.rs b/src/event.rs index 5800414..558985e 100644 --- a/src/event.rs +++ b/src/event.rs @@ -215,7 +215,7 @@ impl Event { api_guild_id: get_api_guild_string(&get_guild_id_bytes(raw_event)), }, // XXX: implement proper handling of those events! - CbtStateChange::BuffInitial | CbtStateChange::Position | CbtStateChange::Velocity | CbtStateChange::Facing | CbtStateChange::TeamChange | CbtStateChange::AttackTarget | CbtStateChange::Targetable | CbtStateChange::MapId | CbtStateChange::ReplInfo | CbtStateChange::StackActive | CbtStateChange::StackReset => { + CbtStateChange::BuffInitial | CbtStateChange::Position | CbtStateChange::Velocity | CbtStateChange::Facing | CbtStateChange::TeamChange | CbtStateChange::AttackTarget | CbtStateChange::Targetable | CbtStateChange::MapId | CbtStateChange::ReplInfo | CbtStateChange::StackActive | CbtStateChange::StackReset | CbtStateChange::BuffInfo | CbtStateChange::BuffFormula | CbtStateChange::SkillInfo | CbtStateChange::SkillTiming => { return None } diff --git a/src/raw/types.rs b/src/raw/types.rs index 2fbdabc..abb8a14 100644 --- a/src/raw/types.rs +++ b/src/raw/types.rs @@ -148,6 +148,14 @@ pub enum CbtStateChange { StackReset, /// src_agent is agent, dst_agent through buff_dmg is 16 byte guid (client form, needs minor rearrange for api form) Guild, + /// is_flanking = probably invuln, is_shields = probably invert, is_offcycle = category, pad61 = stacking type, src_master_instid = max stacks (not in realtime) + BuffInfo, + /// (float*)&time [9]: type attr1 attr2 param1 param2 param3 trait_src trait_self, is_flanking = !npc, is_shields = !player, is_offcycle = break (not in realtime, one per formula) + BuffFormula, + /// (float*)&time [9]: recharge range0 range1 tooltiptime (not in realtime) + SkillInfo, + /// src_agent = action, dst_agent = at millisecond (not in realtime, one per timing) + SkillTiming, } /// Combat buff remove type -- cgit v1.2.3