1
0
forked from noxious/server

npm run format

This commit is contained in:
2024-12-25 02:06:58 +01:00
parent c35e27799e
commit b4989aac26
28 changed files with 252 additions and 243 deletions

View File

@ -1,39 +1,39 @@
import { randomUUID } from 'node:crypto'
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
import { Sprite } from './sprite';
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
import { Sprite } from './sprite'
@Entity()
export class SpriteAction {
@PrimaryKey()
id = randomUUID();
id = randomUUID()
@ManyToOne(() => Sprite)
sprite!: Sprite;
sprite!: Sprite
@Property()
action!: string;
action!: string
@Property({ type: 'json', nullable: true })
sprites?: any;
sprites?: any
@Property()
originX = 0;
originX = 0
@Property()
originY = 0;
originY = 0
@Property()
isAnimated = false;
isAnimated = false
@Property()
isLooping = false;
isLooping = false
@Property()
frameWidth = 0;
frameWidth = 0
@Property()
frameHeight = 0;
frameHeight = 0
@Property()
frameRate = 0;
}
frameRate = 0
}