@idosgames/core 0.26.6 → 0.26.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/{GameHost-xACJW0x5.d.cts → GameHost-gNo-pSSn.d.cts} +4 -0
- package/dist/{GameHost-xACJW0x5.d.ts → GameHost-gNo-pSSn.d.ts} +4 -0
- package/dist/{VoiceController-BMXi4MNo.d.ts → VoiceController-BHAlGvEd.d.ts} +16346 -235
- package/dist/{VoiceController-BWb8NTp2.d.cts → VoiceController-FdN8yiN8.d.cts} +16346 -235
- package/dist/chunk-S24V5BGG.js +2 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +43 -5
- package/dist/index.d.ts +43 -5
- package/dist/index.js +2 -2
- package/dist/platform/index.cjs +1 -1
- package/dist/platform/index.d.cts +2 -2
- package/dist/platform/index.d.ts +2 -2
- package/dist/platform/index.js +1 -1
- package/dist/realtime/index.d.cts +3 -3
- package/dist/realtime/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/chunk-YZ32MQXQ.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,34 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
|
|
|
16
16
|
|
|
17
17
|
### Added
|
|
18
18
|
|
|
19
|
+
- **Hold on peer payouts** (0.26.8, engine `Currency.PeerTransferHold`). Virtual currency a player gets from
|
|
20
|
+
another player (marketplace, mail transfer, PvP stake, Workshop sale) can wait `HoldHours` and is voided when
|
|
21
|
+
the payer refunds a store purchase. New `CurrencyDefinitions.PeerTransferHold`, `ClientState.PeerPayouts`
|
|
22
|
+
(what this login credited is already in the balances: show it, apply nothing), `HeldPayout` on the mailbox
|
|
23
|
+
transfer and match results, `PeerPayoutSource` / `PeerPayoutStatus`. `marketplace.getMyState` applies the
|
|
24
|
+
matured payouts it credited (`PayoutOperations`). All fields optional: older engines are read as before.
|
|
25
|
+
- **Craft output level `Weighted`** (0.26.8): the level of one input picked with weight `level^k`
|
|
26
|
+
(`OutputLevelWeightPower`, absent = 1).
|
|
27
|
+
|
|
28
|
+
- **Selected hero on the server** — `client.character.selectCharacter(characterID)` (engine action
|
|
29
|
+
`Character/SelectCharacter`, event `character:selected`). Platform field `Character.SelectedCharacterID`: works in
|
|
30
|
+
every title with no config. `getUserCharacters` and the cached state carry it; `PlayerProfileResponse.SelectedCharacterID`
|
|
31
|
+
tells which hero another player plays (fall back to `StrongestCharacterID`). Cosmetic — no resources move.
|
|
32
|
+
- **Another player's profile** — `client.social.getPlayerProfile(userID)` (engine action `Social/GetPlayerProfile`,
|
|
33
|
+
event `social:playerProfileLoaded`). Card, unlocked heroes with equipment and power recomputed by the server,
|
|
34
|
+
`StrongestCharacterID` (the in-game hero choice is device-local), board progress, the target's `Public`
|
|
35
|
+
UserCustomData bucket, and my relation to them (`Relation`, `FriendSource`, `BlockedByMe`,
|
|
36
|
+
`FriendRequestsAllowed`). The refusal `PLAYER_UNAVAILABLE` covers "no such player", "they blocked you" and
|
|
37
|
+
"banned" on purpose. Friend lists now carry a real `PublicData.Power` (it used to be 0 for everyone).
|
|
38
|
+
- **Challenges** (`client.challenge`, engine module `Challenge`). Scheduled phase chains (mode `Arena` for now)
|
|
39
|
+
sharing one ticket per chain: other modules' milestones grant it with `{Type: "Challenge", EntityID: chainID}`.
|
|
40
|
+
`getState` (also burns leftover tickets of ended phases and applies their conversion), `refreshOpponents`,
|
|
41
|
+
`attempt(chainID, {tierID} | {revengeID}, attemptID)` — `attemptID` is the idempotency key of ONE action, reuse
|
|
42
|
+
it on retry (`IsReplay`), `claimMilestone`, and `claimReachedMilestones` for the client-side auto-claim (there are
|
|
43
|
+
no claim buttons by design). Definitions come with the login config (`client.challenge.definitions`).
|
|
44
|
+
`EventTokenType` gains `Challenge` / `ChallengePoints` — before this they were silently read as `TimedEvent`.
|
|
45
|
+
`SocialInboxVerb.ArenaDefeat`.
|
|
46
|
+
|
|
19
47
|
- **Prices in Credits (Aspis) in every sale of the game's author** (0.26.0). `client.credits.pay(call, options)` runs
|
|
20
48
|
the whole flow (request, the player's confirmation on idosgames.com, the confirmed call) for any method below;
|
|
21
49
|
`store.purchaseWithCredits` now goes through it. New `creditsConfirmationID` on `lootbox.open`,
|
|
@@ -57,6 +57,10 @@ declare const EventTokenType: {
|
|
|
57
57
|
readonly Leaderboard: "Leaderboard";
|
|
58
58
|
readonly CoopEvent: "CoopEvent";
|
|
59
59
|
readonly Season: "Season";
|
|
60
|
+
/** Challenge ticket. Short address: `EntityID = chainID` (server routes it to the running phase). */
|
|
61
|
+
readonly Challenge: "Challenge";
|
|
62
|
+
/** Points of a challenge phase (earned by wins only). */
|
|
63
|
+
readonly ChallengePoints: "ChallengePoints";
|
|
60
64
|
};
|
|
61
65
|
type EventTokenType = (typeof EventTokenType)[keyof typeof EventTokenType];
|
|
62
66
|
declare const ScheduleMode: {
|
|
@@ -57,6 +57,10 @@ declare const EventTokenType: {
|
|
|
57
57
|
readonly Leaderboard: "Leaderboard";
|
|
58
58
|
readonly CoopEvent: "CoopEvent";
|
|
59
59
|
readonly Season: "Season";
|
|
60
|
+
/** Challenge ticket. Short address: `EntityID = chainID` (server routes it to the running phase). */
|
|
61
|
+
readonly Challenge: "Challenge";
|
|
62
|
+
/** Points of a challenge phase (earned by wins only). */
|
|
63
|
+
readonly ChallengePoints: "ChallengePoints";
|
|
60
64
|
};
|
|
61
65
|
type EventTokenType = (typeof EventTokenType)[keyof typeof EventTokenType];
|
|
62
66
|
declare const ScheduleMode: {
|