Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@runox-game/game-engine

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@runox-game/game-engine - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

7

lib/commands/start-game.command.js

@@ -63,8 +63,2 @@ "use strict";

}
/*
state.stack.cards = [];
state.playersGroup.players.forEach((player) => {
player.hand.cards = [];
});
*/
state.stack.addCard(firstStackCard);

@@ -74,2 +68,3 @@ state.log(" Carta en la mesa " + firstStackCard.sprite, log_levels_enum_1.LogLevel.USER);

state.log(" El primer turno es para " + playerTurn.name, log_levels_enum_1.LogLevel.USER);
state.turn.round = 0;
state.turn.setPlayerTurn(playerTurn);

@@ -76,0 +71,0 @@ this.events.dispatchAfterGameStart();

2

lib/models/turn.model.d.ts

@@ -5,2 +5,3 @@ import { IPlayer } from './player.model';

valid: boolean;
round: number;
setPlayerTurn(player: IPlayer): void;

@@ -10,2 +11,3 @@ }

player: IPlayer | undefined;
round: number;
constructor();

@@ -12,0 +14,0 @@ get valid(): boolean;

@@ -6,2 +6,3 @@ "use strict";

function Turn() {
this.round = 0;
this.player = undefined;

@@ -17,2 +18,6 @@ }

Turn.prototype.setPlayerTurn = function (player) {
var _a;
if (((_a = this.player) === null || _a === void 0 ? void 0 : _a.id) !== player.id) {
this.round++;
}
this.player = player;

@@ -19,0 +24,0 @@ };

{
"name": "@runox-game/game-engine",
"version": "0.0.21",
"version": "0.0.22",
"description": "RunoX game engine",

@@ -5,0 +5,0 @@ "main": "lib/game-engine.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc