|
|
- // CONSTANTS
- export const MODULE_NAME = "pf2e-dorako-ux";
-
- // CLASSES
- export class Avatar {
- constructor(name, image) {
- this.name = name;
- this.image = image;
- this.type = "avatar";
- }
- }
-
- export class CombatantAvatar extends Avatar {
- constructor(name, image) {
- super(name, image);
- this.type = "combatant";
- }
- }
-
- export class ActorAvatar extends Avatar {
- constructor(name, image) {
- super(name, image);
- this.type = "actor";
- }
- }
-
- export class TokenAvatar extends Avatar {
- constructor(name, image, scale, isSmall) {
- super(name, image);
- this.type = "token";
- this.scale = scale;
- this.isSmall = isSmall;
- }
- }
|