You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
fix(api): IRoomSession.password + sendBackgroundMessage + optional chatColour
The IRoomSession interface was missing three things that have always existed on the RoomSession implementation: - `password: string` — the room session's join password (used by the reconnect flow in RoomSessionManager). - `sendBackgroundMessage(backgroundImage, backgroundStand, backgroundOverlay, backgroundCard?)` — sends the profile-background composer (used by the React client's BackgroundsView). Plus a signature relaxation: - `sendChatMessage` / `sendShoutMessage` `chatColour` is now optional. The implementation already accepted `undefined` (the composer forwards it through), and every historical call site in the React client passes only 2 args — making the 3rd optional simply types reality. Net renderer typecheck: 26 → 23. The change also drops 7 errors on the consumer side (see ../Nitro-V3 typecheck after the workspace link picks this up). CLAUDE.md gotchas updated to reflect the new interface contract.
This commit is contained in:
@@ -9,10 +9,11 @@ export interface IRoomSession
|
||||
setRoomOwner(): void;
|
||||
start(): boolean;
|
||||
reset(roomId: number): void;
|
||||
sendChatMessage(text: string, styleId: number, chatColour: string): void;
|
||||
sendShoutMessage(text: string, styleId: number, chatColour: string): void;
|
||||
sendChatMessage(text: string, styleId: number, chatColour?: string): void;
|
||||
sendShoutMessage(text: string, styleId: number, chatColour?: string): void;
|
||||
sendWhisperMessage(recipientName: string, text: string, styleId: number): void;
|
||||
sendChatTypingMessage(isTyping: boolean): void;
|
||||
sendBackgroundMessage(backgroundImage: number, backgroundStand: number, backgroundOverlay: number, backgroundCard?: number): void;
|
||||
sendMottoMessage(motto: string): void;
|
||||
sendDanceMessage(danceId: number): void;
|
||||
sendExpressionMessage(expression: number): void;
|
||||
@@ -50,6 +51,7 @@ export interface IRoomSession
|
||||
sendScriptProceed(): void;
|
||||
userDataManager: IUserDataManager;
|
||||
roomId: number;
|
||||
password: string;
|
||||
state: string;
|
||||
tradeMode: number;
|
||||
isPrivateRoom: boolean;
|
||||
|
||||
Reference in New Issue
Block a user