35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { Character } from '../characters/entities/character.entity';
|
|
import { ConditionsModule } from '../conditions/conditions.module';
|
|
import { CharacterItem } from '../items/entities/character-item.entity';
|
|
import { CharacterLootBag } from '../loot-bags/entities/character-loot-bag.entity';
|
|
import { LootBagDefinition } from '../loot-bags/entities/loot-bag-definition.entity';
|
|
import { NpcsModule } from '../npcs/npcs.module';
|
|
import { ReputationFaction } from '../reputation/entities/reputation-faction.entity';
|
|
import { NpcShop } from './entities/npc-shop.entity';
|
|
import { ShopOffer } from './entities/shop-offer.entity';
|
|
import { ShopController } from './shop.controller';
|
|
import { ShopService } from './shop.service';
|
|
|
|
/** Buying things for Silver (NPC spec §15, §29). */
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
Character,
|
|
CharacterItem,
|
|
CharacterLootBag,
|
|
LootBagDefinition,
|
|
NpcShop,
|
|
ReputationFaction,
|
|
ShopOffer,
|
|
]),
|
|
ConditionsModule,
|
|
NpcsModule,
|
|
],
|
|
controllers: [ShopController],
|
|
providers: [ShopService],
|
|
exports: [ShopService],
|
|
})
|
|
export class ShopsModule {}
|