You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 23:16:20 +00:00
feat(communication): housekeeping set-rank + trade-lock + reset-password composers
Three composers closing out the users-domain HK actions: * OutgoingHeader 9107 HousekeepingSetUserRankComposer (userId, rankId) * OutgoingHeader 9108 HousekeepingTradeLockUserComposer (userId, hours, reason) * OutgoingHeader 9109 HousekeepingResetUserPasswordComposer (userId) All three ride the existing HousekeepingActionResultEvent for the ack.
This commit is contained in:
@@ -531,4 +531,7 @@ export class OutgoingHeader
|
||||
public static HOUSEKEEPING_MUTE_USER = 9104;
|
||||
public static HOUSEKEEPING_KICK_USER = 9105;
|
||||
public static HOUSEKEEPING_FORCE_DISCONNECT_USER = 9106;
|
||||
public static HOUSEKEEPING_SET_USER_RANK = 9107;
|
||||
public static HOUSEKEEPING_TRADE_LOCK_USER = 9108;
|
||||
public static HOUSEKEEPING_RESET_USER_PASSWORD = 9109;
|
||||
}
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class HousekeepingResetUserPasswordComposer implements IMessageComposer<ConstructorParameters<typeof HousekeepingResetUserPasswordComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof HousekeepingResetUserPasswordComposer>;
|
||||
|
||||
constructor(userId: number)
|
||||
{
|
||||
this._data = [userId];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class HousekeepingSetUserRankComposer implements IMessageComposer<ConstructorParameters<typeof HousekeepingSetUserRankComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof HousekeepingSetUserRankComposer>;
|
||||
|
||||
constructor(userId: number, rankId: number)
|
||||
{
|
||||
this._data = [userId, rankId];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { IMessageComposer } from '@nitrots/api';
|
||||
|
||||
export class HousekeepingTradeLockUserComposer implements IMessageComposer<ConstructorParameters<typeof HousekeepingTradeLockUserComposer>>
|
||||
{
|
||||
private _data: ConstructorParameters<typeof HousekeepingTradeLockUserComposer>;
|
||||
|
||||
constructor(userId: number, hours: number, reason: string)
|
||||
{
|
||||
this._data = [userId, hours, reason];
|
||||
}
|
||||
|
||||
public getMessageArray()
|
||||
{
|
||||
return this._data;
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -4,4 +4,7 @@ export * from './HousekeepingFindUserByNameComposer';
|
||||
export * from './HousekeepingForceDisconnectUserComposer';
|
||||
export * from './HousekeepingKickUserComposer';
|
||||
export * from './HousekeepingMuteUserComposer';
|
||||
export * from './HousekeepingResetUserPasswordComposer';
|
||||
export * from './HousekeepingSetUserRankComposer';
|
||||
export * from './HousekeepingTradeLockUserComposer';
|
||||
export * from './HousekeepingUnbanUserComposer';
|
||||
|
||||
Reference in New Issue
Block a user