SES-160 shop on gm and player screen #85

Merged
s426128 merged 11 commits from SES-160 into dev 2021-01-23 21:50:04 +01:00
5 changed files with 0 additions and 10 deletions
Showing only changes of commit 123d1673b6 - Show all commits

View File

@ -17,7 +17,6 @@ export class SendMessageActionComponent implements OnInit {
ngOnInit() {} ngOnInit() {}
SendMessage(message: string) { SendMessage(message: string) {
debugger;
this.signalRService.SendMessageToPlayer(this.characterId, message); this.signalRService.SendMessageToPlayer(this.characterId, message);
this.Close(); this.Close();
} }

View File

@ -31,7 +31,6 @@ export class GameMasterCharacterActionsDialogComponent implements OnInit {
this.characterId = this.data.characterid; this.characterId = this.data.characterid;
this.characterName = this.data.characterName; this.characterName = this.data.characterName;
this.inputs = { characterId: this.characterId }; this.inputs = { characterId: this.characterId };
console.log(this.inputs);
} }
ChangeActionComponent(componentName: string): void { ChangeActionComponent(componentName: string): void {

View File

@ -116,7 +116,6 @@ export class GameMasterTurntrackerComponent implements OnInit, OnDestroy {
); );
result.forEach((ele) => { result.forEach((ele) => {
if (monstersOnList.map((e) => e.name).includes(ele.name)) { if (monstersOnList.map((e) => e.name).includes(ele.name)) {
debugger;
let maxCurrentId = Math.max( let maxCurrentId = Math.max(
...monstersOnList.map((e) => e.monsterId), ...monstersOnList.map((e) => e.monsterId),
0 0

View File

@ -46,7 +46,6 @@ export class PlayerDashboardComponent implements OnInit {
.GetCharacterBasicInfo(id) .GetCharacterBasicInfo(id)
.pipe(first()) .pipe(first())
.subscribe((result) => { .subscribe((result) => {
console.log(result);
this.characterName = result.name; this.characterName = result.name;
}); });
}); });

View File

@ -53,16 +53,10 @@ export class ShopkeeperService {
CreateShopkeeper( CreateShopkeeper(
shopkeeperModel: ShopkeeperWithItemsViewModel shopkeeperModel: ShopkeeperWithItemsViewModel
): Observable<SuccessResponse> { ): Observable<SuccessResponse> {
const params = new HttpParams().set(
'shopkeeperWithItemsViewModel',
JSON.stringify(shopkeeperModel)
);
const httpOptions = { const httpOptions = {
headers: new HttpHeaders({ 'Content-Type': 'application/json' }), headers: new HttpHeaders({ 'Content-Type': 'application/json' }),
}; };
console.log(params);
return this.http return this.http
.post<Either<SuccessResponse, ErrorResponse>>( .post<Either<SuccessResponse, ErrorResponse>>(
this.baseUrl + 'createNewShopkeeper', this.baseUrl + 'createNewShopkeeper',