Provide and export CharacterCombatStatsService from CharactersModule, create CombatModule (registering the combat entities, controllers, CombatService and CombatEngineService, and importing TravelModule and CharactersModule), and register CombatModule in AppModule so the three combat endpoints (attack, get combat, post action) are reachable from the running app.
22 lines
634 B
TypeScript
22 lines
634 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { CharactersModule } from './characters/characters.module';
|
|
import { CombatModule } from './combat/combat.module';
|
|
import { DatabaseModule } from './database/database.module';
|
|
import { HealthModule } from './health/health.module';
|
|
import { HuntingModule } from './hunting/hunting.module';
|
|
import { TravelModule } from './travel/travel.module';
|
|
import { WorldModule } from './world/world.module';
|
|
|
|
@Module({
|
|
imports: [
|
|
DatabaseModule,
|
|
HealthModule,
|
|
CharactersModule,
|
|
TravelModule,
|
|
WorldModule,
|
|
HuntingModule,
|
|
CombatModule,
|
|
],
|
|
})
|
|
export class AppModule {}
|