forked from noxious/server
npm run format
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user