diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-07-09 01:48:44 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-07-09 01:48:44 +0200 |
commit | 49d369b83b9529ad0d7723e5c34d612f1ad32e8f (patch) | |
tree | 74a88ba3536d46da571db2bf81db01dedc4ac7a4 /src/raw | |
parent | c1236e68f32511332c79d2195876eb51aaaa7c5e (diff) | |
download | evtclib-49d369b83b9529ad0d7723e5c34d612f1ad32e8f.tar.gz evtclib-49d369b83b9529ad0d7723e5c34d612f1ad32e8f.tar.bz2 evtclib-49d369b83b9529ad0d7723e5c34d612f1ad32e8f.zip |
add rudimentary support for new state changes
The arcdps update has introduced new state change events, namely
BuffInitial, Position and Velocity. It is now possible to track the
movements of all players.
Unfortunately, this meant that evtclib could not ready any logs created
by the new arc version, as the new CbtStateChange was not read
correctly. evtclib just returned "Invalid data".
This fix adds the new enum variants to the CbtStateChange enum, making
it again possible to read files. However, there are no high-level events
for those yet, so the conversion will fail.
Diffstat (limited to 'src/raw')
-rw-r--r-- | src/raw/types.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/raw/types.rs b/src/raw/types.rs index e3a80af..f131eb1 100644 --- a/src/raw/types.rs +++ b/src/raw/types.rs @@ -123,6 +123,13 @@ pub enum CbtStateChange { /// * `dst_agent` is reward id. /// * `value` is reward type. Reward, + /// Combat event that will appear once per buff per agent on logging start (zero duration, + /// buff==18) + BuffInitial, + /// src_agent changed, cast float* p = (float*)&dst_agent, access as x/y/z (float[3]) + Position, + /// src_agent changed, cast float* v = (float*)&dst_agent, access as x/y/z (float[3]) + Velocity, } /// Combat buff remove type |