-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created Mongoose connection and implemented MetagameEvent handler #55
Conversation
… Made various other tweaks.
Co-authored-by: Vojtěch Strnad <43024885+vostrnad@users.noreply.github.com>
…for un-fucking my mind)
'AlertDeath', | ||
alertDeathSchema, | ||
)) | ||
.inSingletonScope(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is where all of the models will be defined and available to be injected into handlers.
…nt which is no longer used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Do you still need the priority feature for services? Or are you already working on that?
app/src/handlers/AlertHandler.ts
Outdated
private _alerts: Alert[] = []; | ||
|
||
public handleMetagameEvent(mge: MetagameEventEvent): boolean { | ||
constructor( | ||
@inject(TYPES.alertModelFactory) factory: MongooseModelFactory<AlertInterface>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation
private readonly alertDeathModelFactory: MongooseModelFactory<AlertDeathInterface>; | ||
|
||
constructor( | ||
@inject(TYPES.playerHandlerInterface) playerHandler: PlayerHandlerInterface, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation
I've managed to get away with it without requiring it. Check branch features/45-death-event |
Implemented Mongoose and MetagameEvent handling including writing to database and updating on end.
Closes #48