these are minutes actually

This commit is contained in:
Soph :3 2024-07-18 10:20:23 +03:00
parent 3cbafe00e6
commit f83eddf063
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
2 changed files with 10 additions and 4 deletions

View file

@ -50,7 +50,7 @@ message ClientMessage {
Ban ban = 14; Ban ban = 14;
message Ban { message Ban {
string id = 1; string id = 1;
uint32 hours = 2; uint32 minutes = 2;
} }
string chown = 15; string chown = 15;

View file

@ -325,9 +325,9 @@ export class ClientMessage_Ban extends Message<ClientMessage_Ban> {
id = ""; id = "";
/** /**
* @generated from field: uint32 hours = 2; * @generated from field: uint32 minutes = 2;
*/ */
hours = 0; minutes = 0;
constructor(data?: PartialMessage<ClientMessage_Ban>) { constructor(data?: PartialMessage<ClientMessage_Ban>) {
super(); super();
@ -338,7 +338,7 @@ export class ClientMessage_Ban extends Message<ClientMessage_Ban> {
static readonly typeName = "pianoverse.ClientMessage.Ban"; static readonly typeName = "pianoverse.ClientMessage.Ban";
static readonly fields: FieldList = proto3.util.newFieldList(() => [ static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "hours", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, { no: 2, name: "minutes", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
]); ]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientMessage_Ban { static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientMessage_Ban {
@ -746,6 +746,11 @@ export class ServerMessage_Welcome extends Message<ServerMessage_Welcome> {
*/ */
chat: ServerMessage_Chat[] = []; chat: ServerMessage_Chat[] = [];
/**
* @generated from field: pianoverse.Role role = 7;
*/
role = Role.USER;
constructor(data?: PartialMessage<ServerMessage_Welcome>) { constructor(data?: PartialMessage<ServerMessage_Welcome>) {
super(); super();
proto3.util.initPartial(data, this); proto3.util.initPartial(data, this);
@ -760,6 +765,7 @@ export class ServerMessage_Welcome extends Message<ServerMessage_Welcome> {
{ no: 4, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 5, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "owner", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 6, name: "chat", kind: "message", T: ServerMessage_Chat, repeated: true }, { no: 6, name: "chat", kind: "message", T: ServerMessage_Chat, repeated: true },
{ no: 7, name: "role", kind: "enum", T: proto3.getEnumType(Role) },
]); ]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerMessage_Welcome { static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerMessage_Welcome {