-
Notifications
You must be signed in to change notification settings - Fork 3
/
Events.h
42 lines (35 loc) · 1014 Bytes
/
Events.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include <cstdint>
#include <vector>
#include "KObject.h"
#include "CKUtils.h"
struct KEnvironment;
struct File;
struct CKObject;
struct CKComparedData;
struct EventNodeX1 {
uint8_t bit = 0;
int16_t seqIndex = -1;
void write(KEnvironment *kenv, File *file) const;
void read(KEnvironment *kenv, File *file, CKObject *user);
void operator=(const EventNodeX1& o) noexcept { bit = 0; seqIndex = -1; }
};
struct EventNodeX2 {
std::vector<KWeakRef<CKComparedData>> datas;
void write(KEnvironment* kenv, File* file);
void read(KEnvironment* kenv, File* file, CKObject* user);
void clean();
void operator=(const EventNodeX2& o) noexcept { datas.clear(); }
};
struct EventNode {
EventNodeX1 enx1;
EventNodeX2 enx2;
void write(KEnvironment* kenv, File* file);
void read(KEnvironment* kenv, File* file, CKObject* user);
};
struct MarkerIndex {
int32_t index = -1;
int32_t arSecondIndex = -1;
void write(KEnvironment* kenv, File* file) const;
void read(KEnvironment* kenv, File* file);
};