Renamed folder utilities > application, added baseEntity class, updated baseRepo class, removed prisma helper

This commit is contained in:
2024-12-25 16:50:01 +01:00
parent f5a7a348e0
commit f4746722af
120 changed files with 423 additions and 378 deletions

View File

@ -1,5 +1,5 @@
import { Server } from 'socket.io'
import { appLogger } from '#utilities/logger'
import { appLogger } from '#application/logger'
import worldService from '#services/worldService'
import worldRepository from '#repositories/worldRepository'
@ -64,6 +64,9 @@ class DateManager {
}
private advanceGameTime(): void {
if (!this.currentDate) {
this.currentDate = new Date()
}
const advanceMilliseconds = DateManager.GAME_SPEED * DateManager.UPDATE_INTERVAL
this.currentDate = new Date(this.currentDate.getTime() + advanceMilliseconds)
}