Skip to content

Commit b19ea55

Browse files
committed
feat: define game stream ids
1 parent f3f05ca commit b19ea55

File tree

1 file changed

+122
-0
lines changed

1 file changed

+122
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
export interface GameStreamId {
2+
/**
3+
* User-friendly title for the game stream.
4+
* Example: 'Spells' or 'Main'.
5+
*/
6+
title: string;
7+
8+
/**
9+
* Unique identifier for the game stream.
10+
* Assigned by DragonRealms.
11+
* Example: 'percWindow' (spells) or '' (main).
12+
*/
13+
streamId: string;
14+
15+
/**
16+
* Unique identifier for the stream for our purposes.
17+
* Generally is the same value as the `streamId` except
18+
* for the main stream which is 'main' instead of empty string.
19+
*/
20+
itemId: string;
21+
}
22+
23+
/**
24+
* Users will be allowed to create new streams to customize how
25+
* game content is routed to the UI. Sometimes custom scripts output
26+
* to specific streams, or DragonRealms introduces new streams before
27+
* we update the code to support them.
28+
*
29+
* This array is the default set of streams that we know DragonRealms supports.
30+
*/
31+
export const DefaultGameStreamIds: Array<GameStreamId> = [
32+
{
33+
title: 'Main',
34+
streamId: '',
35+
itemId: 'main',
36+
},
37+
{
38+
title: 'Experience',
39+
streamId: 'experience',
40+
itemId: 'experience',
41+
},
42+
{
43+
title: 'Room',
44+
streamId: 'room',
45+
itemId: 'room',
46+
},
47+
{
48+
title: 'Spells',
49+
streamId: 'percWindow',
50+
itemId: 'percWindow',
51+
},
52+
{
53+
title: 'Inventory',
54+
streamId: 'inv',
55+
itemId: 'inv',
56+
},
57+
{
58+
title: 'Familiar',
59+
streamId: 'familiar',
60+
itemId: 'familiar',
61+
},
62+
{
63+
title: 'Thoughts',
64+
streamId: 'thoughts',
65+
itemId: 'thoughts',
66+
},
67+
{
68+
title: 'Combat',
69+
streamId: 'combat',
70+
itemId: 'combat',
71+
},
72+
{
73+
title: 'Assess',
74+
streamId: 'assess',
75+
itemId: 'assess',
76+
},
77+
{
78+
title: 'Arrivals',
79+
streamId: 'logons',
80+
itemId: 'logons',
81+
},
82+
{
83+
title: 'Deaths',
84+
streamId: 'deaths',
85+
itemId: 'deaths',
86+
},
87+
{
88+
title: 'Atmospherics',
89+
streamId: 'atmospherics',
90+
itemId: 'atmospherics',
91+
},
92+
{
93+
title: 'Chatter',
94+
streamId: 'chatter',
95+
itemId: 'chatter',
96+
},
97+
{
98+
title: 'Conversation',
99+
streamId: 'conversation',
100+
itemId: 'conversation',
101+
},
102+
{
103+
title: 'Whispers',
104+
streamId: 'whispers',
105+
itemId: 'whispers',
106+
},
107+
{
108+
title: 'Talk',
109+
streamId: 'talk',
110+
itemId: 'talk',
111+
},
112+
{
113+
title: 'OOC',
114+
streamId: 'ooc',
115+
itemId: 'ooc',
116+
},
117+
{
118+
title: 'Group',
119+
streamId: 'group',
120+
itemId: 'group',
121+
},
122+
];

0 commit comments

Comments
 (0)