Renamed folder utilities > application, added baseEntity class, updated baseRepo class, removed prisma helper
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user