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,25 +1,25 @@
import { Collection, Entity, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
import { Character } from './character';
import { Sprite } from './sprite';
import { CharacterGender } from '#utilities/enums';
import { Collection, Entity, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
import { Character } from './character'
import { Sprite } from './sprite'
import { CharacterGender } from '#utilities/enums'
@Entity()
export class CharacterHair {
@PrimaryKey()
id!: number;
id!: number
@Property()
name!: string;
name!: string
@Property()
gender: CharacterGender = CharacterGender.MALE;
gender: CharacterGender = CharacterGender.MALE
@Property()
isSelectable = false;
isSelectable = false
@ManyToOne(() => Sprite, { nullable: true })
sprite?: Sprite;
sprite?: Sprite
@OneToMany(() => Character, character => character.characterHair)
characters = new Collection<Character>(this);
}
@OneToMany(() => Character, (character) => character.characterHair)
characters = new Collection<Character>(this)
}