From ee90adc22eb07befbeb4f7fd4c6481991f7d1140 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sat, 30 Dec 2017 11:20:00 +0100 Subject: [PATCH] extend from API socket --- src/game-lib-api-socket-cast.js | 2 +- src/game-lib-api-socket-receive.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game-lib-api-socket-cast.js b/src/game-lib-api-socket-cast.js index 385c71e..aa6f81e 100644 --- a/src/game-lib-api-socket-cast.js +++ b/src/game-lib-api-socket-cast.js @@ -43,7 +43,7 @@ GameLib.API.Socket.Cast = function( ); }; -GameLib.API.Socket.Cast.prototype = Object.create(GameLib.Component.prototype); +GameLib.API.Socket.Cast.prototype = Object.create(GameLib.API.Socket.prototype); GameLib.API.Socket.Cast.prototype.constructor = GameLib.API.Socket.Cast.Receive; GameLib.API.Socket.Cast.CAST_TYPE_ROOM = 0x1; diff --git a/src/game-lib-api-socket-receive.js b/src/game-lib-api-socket-receive.js index fc866b2..b376d6c 100644 --- a/src/game-lib-api-socket-receive.js +++ b/src/game-lib-api-socket-receive.js @@ -43,13 +43,12 @@ GameLib.API.Socket.Receive = function( ); }; -GameLib.API.Socket.Receive.prototype = Object.create(GameLib.Component.prototype); +GameLib.API.Socket.Receive.prototype = Object.create(GameLib.API.Socket.prototype); GameLib.API.Socket.Receive.prototype.constructor = GameLib.API.Socket.Receive; GameLib.API.Socket.Receive.RECEIVE_TYPE_ROOM = 0x1; GameLib.API.Socket.Receive.RECEIVE_TYPE_PEER = 0x2; - /** * Creates an API Socket.Receive from an Object Socket.Receive * @param socket GameLib.SocketsRuntime