@warpfx/server 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +15 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -106,13 +106,19 @@ interface PlayerEventContext {
|
|
|
106
106
|
citizenId: string;
|
|
107
107
|
/** Display name. */
|
|
108
108
|
name: string;
|
|
109
|
+
/** Discord identifier (e.g. "discord:123456789"), if linked. */
|
|
110
|
+
discordId?: string;
|
|
111
|
+
/** Steam identifier (e.g. "steam:110000..."), if linked. */
|
|
112
|
+
steamId?: string;
|
|
109
113
|
}
|
|
110
114
|
/** Player data row from the database cache. */
|
|
111
115
|
interface PlayerRow {
|
|
112
116
|
citizenId: string;
|
|
113
117
|
name: string;
|
|
118
|
+
discordId?: string;
|
|
119
|
+
steamId?: string;
|
|
114
120
|
online: boolean;
|
|
115
|
-
lastSeen:
|
|
121
|
+
lastSeen: number;
|
|
116
122
|
}
|
|
117
123
|
/** Player lifecycle state. */
|
|
118
124
|
type PlayerState = "connecting" | "connected" | "spawned";
|
|
@@ -124,6 +130,10 @@ interface PlayerEntity {
|
|
|
124
130
|
readonly citizenId: string;
|
|
125
131
|
/** Display name. */
|
|
126
132
|
readonly name: string;
|
|
133
|
+
/** Discord identifier (e.g. "discord:123456789"), if linked. */
|
|
134
|
+
readonly discordId: string | undefined;
|
|
135
|
+
/** Steam identifier (e.g. "steam:110000..."), if linked. */
|
|
136
|
+
readonly steamId: string | undefined;
|
|
127
137
|
/** Current lifecycle state. */
|
|
128
138
|
readonly state: PlayerState;
|
|
129
139
|
/** Get a component attached to this player. */
|
|
@@ -228,6 +238,10 @@ interface ActionContext {
|
|
|
228
238
|
citizenId: string;
|
|
229
239
|
/** Player's display name. */
|
|
230
240
|
name: string;
|
|
241
|
+
/** Discord identifier (e.g. "discord:123456789"), if linked. */
|
|
242
|
+
discordId?: string;
|
|
243
|
+
/** Steam identifier (e.g. "steam:110000..."), if linked. */
|
|
244
|
+
steamId?: string;
|
|
231
245
|
/** Database table accessors (read-only). */
|
|
232
246
|
db: any;
|
|
233
247
|
/** Database reducer proxy (for mutations). */
|