src/components/templates/AnimateMap/game/map/MapContainer.ts
Function initSystems
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private initSystems() {
this._tooltipContainer = new Container();
this.addChild(this._tooltipContainer);
this._bubbleContainer = new Container();
this.addChild(this._bubbleContainer);
- Create a ticketCreate a ticket
File MapContainer.ts
has 349 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { Engine } from "@ash.ts/ash";
import { Application, Container } from "pixi.js";
import { Viewport } from "pixi-viewport";
import { setAnimateMapPointer } from "store/actions/AnimateMap";
- Create a ticketCreate a ticket
Function initEntities
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private initEntities(): Promise<void> {
if (!this.entityFactory) {
return Promise.reject();
}
- Create a ticketCreate a ticket
Function initMap
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private initMap(config: any) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const objectsLayer = config.layers.find((o: any) => o.name === "objects");
if (objectsLayer) {
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (soundProp) {
const sound = soundProp.value;
if (sounds.hasOwnProperty(sound)) {
this.entityFactory?.createSoundEmitter(
- Create a ticketCreate a ticket