🆙 Init V3

This commit is contained in:
DuckieTM
2026-01-31 09:10:52 +01:00
commit 7feb10ab15
1733 changed files with 53405 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
export class GroupBadgePart
{
public static BASE: string = 'b';
public static SYMBOL: string = 's';
public type: string;
public key: number;
public color: number;
public position: number;
constructor(type: string, key?: number, color?: number, position?: number)
{
this.type = type;
this.key = key ? key : 0;
this.color = color ? color : 0;
this.position = position ? position : 4;
}
public get code(): string
{
if((this.key === 0) && (this.type !== GroupBadgePart.BASE)) return null;
return GroupBadgePart.getCode(this.type, this.key, this.color, this.position);
}
public static getCode(type: string, key: number, color: number, position: number): string
{
return type + (key < 10 ? '0' : '') + key + (color < 10 ? '0' : '') + color + position;
}
}