Move to Renderer V2

This commit is contained in:
duckietm
2024-04-03 09:27:56 +02:00
parent 110c3ad393
commit b3134ce50b
4080 changed files with 115593 additions and 66375 deletions
@@ -0,0 +1,46 @@
import { IMessageDataWrapper } from '@nitrots/api';
export class BotData
{
private _id: number;
private _name: string;
private _motto: string;
private _gender: string;
private _figure: string;
constructor(wrapper: IMessageDataWrapper)
{
if(!wrapper) throw new Error('invalid_parser');
this._id = wrapper.readInt();
this._name = wrapper.readString();
this._motto = wrapper.readString();
this._gender = wrapper.readString();
this._figure = wrapper.readString();
}
public get id(): number
{
return this._id;
}
public get name(): string
{
return this._name;
}
public get motto(): string
{
return this._motto;
}
public get figure(): string
{
return this._figure;
}
public get gender(): string
{
return this._gender;
}
}