You've already forked Nitro_Render_V3
mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-20 07:26:18 +00:00
Move to Renderer V2
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
import { IDisposable, IMessageDataWrapper } from '@nitrots/api';
|
||||
import { HallOfFameEntryData } from './HallOfFameEntryData';
|
||||
|
||||
export class CommunityGoalHallOfFameData implements IDisposable
|
||||
{
|
||||
private _goalCode: string;
|
||||
private _hof: HallOfFameEntryData[];
|
||||
|
||||
constructor(wrapper: IMessageDataWrapper)
|
||||
{
|
||||
this._hof = [];
|
||||
this._goalCode = wrapper.readString();
|
||||
|
||||
const count = wrapper.readInt();
|
||||
|
||||
for(let i = 0; i < count; i++)
|
||||
{
|
||||
this._hof.push(new HallOfFameEntryData(wrapper));
|
||||
}
|
||||
}
|
||||
|
||||
public dispose(): void
|
||||
{
|
||||
this._hof = null;
|
||||
}
|
||||
|
||||
public get disposed(): boolean
|
||||
{
|
||||
return this._hof == null;
|
||||
}
|
||||
|
||||
public get hof(): HallOfFameEntryData[]
|
||||
{
|
||||
return this._hof;
|
||||
}
|
||||
|
||||
public get goalCode(): string
|
||||
{
|
||||
return this._goalCode;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user