steamsheep-ts-game-engine 3.0.0 → 3.1.0
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/README.md +62 -5
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/state/index.d.mts +2 -2
- package/dist/state/index.d.ts +2 -2
- package/dist/{store-B7yMYHpB.d.mts → store-5-3GQpi9.d.mts} +1 -1
- package/dist/{store-BKROShPq.d.ts → store-PPh__zkF.d.ts} +1 -1
- package/dist/systems/index.d.mts +2 -2
- package/dist/systems/index.d.ts +2 -2
- package/dist/systems/index.js +1 -1
- package/dist/systems/index.js.map +1 -1
- package/dist/systems/index.mjs +1 -1
- package/dist/systems/index.mjs.map +1 -1
- package/dist/{types-C3Q7UPWy.d.mts → types-D-nDlnv3.d.mts} +69 -20
- package/dist/{types-C3Q7UPWy.d.ts → types-D-nDlnv3.d.ts} +69 -20
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1353,7 +1353,7 @@ var FlowSystem = class {
|
|
|
1353
1353
|
action.afterEffects(currentState, originalState, actions);
|
|
1354
1354
|
}
|
|
1355
1355
|
const finalState = store;
|
|
1356
|
-
const resultText = typeof action.resultText === "function" ? action.resultText(finalState) : action.resultText;
|
|
1356
|
+
const resultText = typeof action.resultText === "function" ? action.resultText(finalState, state) : action.resultText;
|
|
1357
1357
|
store.addLog(resultText, "result");
|
|
1358
1358
|
gameEvents.emit(EngineEvents.ACTION_EXECUTED, { actionId: action.id });
|
|
1359
1359
|
return true;
|