Home
/
risinglegends.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
chore(release): 0.4.0
[risinglegends.git]
/
src
/
shared
/
event.ts
1
type UUID = string;
2
3
export type EventName = 'DUNGEON_COMPLETE'
4
| 'MONSTER_KILLED'
5
| 'PLAYER_KILLED'
6
| 'LEVEL_UP'
7
| 'LOGIN'
8
;
9
10
export type Event<T> = {
11
id: UUID;
12
event_name: EventName;
13
player_id: UUID;
14
app_version: string;
15
value: number;
16
props: T
17
created: Date;
18
}
19
20
export type CreatedEvent = Omit<Event<any>, 'id'|'created'|'value'> & {
21
created?: Date;
22
value?: number;
23
}