Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 6363bdb

Browse files
authored
Player Money (player data sync): v0.4.2 (#23)
* Done player money * fix version * v0.4.2
1 parent a96b9bb commit 6363bdb

File tree

5 files changed

+42
-3
lines changed

5 files changed

+42
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@funixproductions/angular-core",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "Package used in all FunixProductions Angular projects",
55
"scripts": {
66
"ng": "ng",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import {ApiDTO} from 'projects/funixproductions-requests/src/public-api';
2+
3+
export class PacifistaPlayerDataDTO extends ApiDTO {
4+
public minecraftUuid: string;
5+
6+
constructor(minecraftUuid: string) {
7+
super();
8+
this.minecraftUuid = minecraftUuid;
9+
}
10+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import {PacifistaPlayerDataDTO} from './PacifistaPlayerDataDTO';
2+
3+
export class PacifistaPlayerMoneyDTO extends PacifistaPlayerDataDTO {
4+
money: number;
5+
offlineMoney: number;
6+
7+
constructor(money: number,
8+
offlineMoney: number,
9+
minecraftUuid: string) {
10+
super(minecraftUuid);
11+
this.money = money;
12+
this.offlineMoney = offlineMoney;
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import {HttpClient} from "@angular/common/http";
2+
import {CrudHttpClient} from "projects/funixproductions-requests/src/public-api";
3+
import {PacifistaPlayerMoneyDTO} from "../dtos/PacifistaPlayerMoneyDTO";
4+
import {environment} from "projects/funixproductions-requests/src/environments/environment";
5+
import {environmentDev} from "projects/funixproductions-requests/src/environments/environment-dev";
6+
7+
export class PacifistaPlayerMoneyService extends CrudHttpClient<PacifistaPlayerMoneyDTO> {
8+
constructor(protected httpClient: HttpClient, production: boolean) {
9+
super(
10+
httpClient,
11+
production ? environment.pacifistaApiUrl : environmentDev.pacifistaApiUrl,
12+
'playersync/money'
13+
);
14+
}
15+
}

0 commit comments

Comments
 (0)