Nikatlas 6 tahun lalu
induk
melakukan
3bd0cfdb80

+ 4 - 0
debug.log

@@ -0,0 +1,4 @@
+[0929/191251.018:ERROR:crash_report_database_win.cc(428)] unexpected header
+[1002/122225.068:ERROR:crash_report_database_win.cc(428)] unexpected header
+[1002/122240.056:ERROR:crash_report_database_win.cc(428)] unexpected header
+[1002/122619.337:ERROR:crash_report_database_win.cc(428)] unexpected header

File diff ditekan karena terlalu besar
+ 225 - 225
package-lock.json


+ 1 - 5
src/Game/services/GameService.js

@@ -34,7 +34,7 @@ class GameService {
         const move = new Game.GameMoves.PlaceMove(card, position, player);
         try{
             this.GameMachine.runMove(move);
-        } catch(e) {
+        } catch (e) {
             console.log(e);
             throw e;
         }
@@ -43,12 +43,8 @@ class GameService {
     }
 
     end(data) {
-
-
-
         SocketService.close();
     }
-
 }
 
 export default new GameService();

+ 2 - 0
src/Game/services/SocketService.js

@@ -3,7 +3,9 @@ import openSocket from 'socket.io-client';
 class SocketService {
 
     constructor() {
+        // check persistence - reconnect 
     }
+    
     openSocket(channel) {
         if(this.socket)
             this.socket.disconnect();

+ 1 - 0
src/Game/services/UserService.js

@@ -30,6 +30,7 @@ class UserService {
 
     logout() {
         // To request Token removal
+        // TODO - stop sockets from SocketService
         this._unsetUser();
     }
 

+ 1 - 1
src/Game/views/buildings/Menu.js

@@ -45,7 +45,7 @@ class Menu extends GuiableContainer{
 
         this.textSprite = new Text({text: "123", y: -345});
         this.textSprite.setText(UserService.getUsername() + ':' + UserService.getToken());
-            
+
         let play = new Button({  y:-100 , Text: {text: "Play"}});
         play.onClick((e) => {
             SocketService.openSocket('randomFree');

+ 1 - 0
src/Game/views/demo/Board.js

@@ -38,6 +38,7 @@ class BoardDemo extends PIXI.Container{
             this.board.sync(GameService.GameMachine.state.board);
         }
     }
+
     update() {}
 
     _kill = () => {

+ 1 - 3
src/Game/views/demo/Navigation.js

@@ -22,10 +22,9 @@ class Navigation extends PIXI.Container{
         this.routes = {
             Login:   new Login({}),
             Menu:    new Menu({})
-        }
+        };
 
         this.addChild(this.routes.Login);
-
         this.routes.Login.onLogin(() => this.go('Menu'));
         this.current = this.routes.Login;
         this.current.update();
@@ -46,7 +45,6 @@ class Navigation extends PIXI.Container{
     }
 
     _kill = () => {
-
     }
 
     getAsJSON = () => {return {component: 'demo/Navigation'}}

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini