diff --git a/src/draw/coordinate.entity.ts b/src/draw/coordinate.entity.ts index 1448b994f7ea26a60ba946597569c9425c1cd789..01c5d67d3db2d7ae55c8a0cdfaf63cc489bec15e 100644 --- a/src/draw/coordinate.entity.ts +++ b/src/draw/coordinate.entity.ts @@ -3,9 +3,11 @@ import { Entity, Column, PrimaryGeneratedColumn, ManyToOne } from 'typeorm'; import { GameEntity } from '../game/game.entity'; import { FactionEntity } from '../faction/faction.entity'; -////////////////////////////////////////////////////////////////////// -/// Entities for different drawings in game and their histories /// -////////////////////////////////////////////////////////////////////// +/* +MapDrawingEntity & MapDrawingHistoryEntity reflect database tables. + +MapDrawing ownershipCheck checks users rights to MapDrawing +*/ @Entity('MapDrawing') export class MapDrawingEntity { diff --git a/src/draw/draw.controller.ts b/src/draw/draw.controller.ts index 983187132ac5645022419d627d8a11d7f41c3788..efc4e1bfbc2694f8e7c5b867d97395d3b9846bbb 100644 --- a/src/draw/draw.controller.ts +++ b/src/draw/draw.controller.ts @@ -13,7 +13,9 @@ import { import { DrawService } from './draw.service'; import { Roles, GameStates } from '../shared/guard.decorator'; import { MapDrawingDTO } from './mapdrawing.dto'; -import { GamePerson } from 'src/game/gameperson.decorator'; +import { GamePerson } from '../game/gameperson.decorator'; + +/* ////////////////////////////////////////////////////////////////////////// /// DrawController /// @@ -25,6 +27,8 @@ import { GamePerson } from 'src/game/gameperson.decorator'; /// Data return functions require atleast spectator role. /// ////////////////////////////////////////////////////////////////////////// +*/ + @Controller('draw') export class DrawController { constructor(private drawService: DrawService) {} diff --git a/src/draw/draw.module.ts b/src/draw/draw.module.ts index bea1b669ffdde53e107179b3379711321a28aceb..5bc079ecc4eea8fa784b22a8ad31841b4a3fa1ec 100644 --- a/src/draw/draw.module.ts +++ b/src/draw/draw.module.ts @@ -10,11 +10,12 @@ import { import { FactionEntity } from '../faction/faction.entity'; import { Game_PersonEntity } from '../game/game.entity'; import { NotificationModule } from 'src/notifications/notifications.module'; - +/* ///////////////////////////////////////////////////////////////////// /// Draw /// /// - contains everything to do with mapdrawing data. /// ///////////////////////////////////////////////////////////////////// +*/ @Module({ imports: [ TypeOrmModule.forFeature([ diff --git a/src/draw/draw.service.ts b/src/draw/draw.service.ts index e1c416c70504f0d9b6df4814da79d1aed85a373f..fabc3a4f44e3886ab8450cf0ada1c4599b7c243d 100644 --- a/src/draw/draw.service.ts +++ b/src/draw/draw.service.ts @@ -9,6 +9,10 @@ import { import { MapDrawingDTO } from './mapdrawing.dto'; import { NotificationGateway } from '../notifications/notifications.gateway'; +/* +DrawService contains handling of MapDrawings and MapDrawinghistory +*/ + @Injectable() export class DrawService { constructor( diff --git a/src/faction/faction.controller.ts b/src/faction/faction.controller.ts index cbbd3ecf587d0a29805f3758b8d4adb36444577a..e18add70a9853c3f78dc8401720514bb9100a388 100644 --- a/src/faction/faction.controller.ts +++ b/src/faction/faction.controller.ts @@ -22,7 +22,7 @@ import { } from './faction.dto'; import { FactionService } from './faction.service'; import { Roles, GameStates } from '../shared/guard.decorator'; -import { GamePerson } from 'src/game/gameperson.decorator'; +import { GamePerson } from '../game/gameperson.decorator'; /* FactionController is being used for routing: