extend from API socket
parent
ff68ee618f
commit
ee90adc22e
|
@ -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.prototype.constructor = GameLib.API.Socket.Cast.Receive;
|
||||||
|
|
||||||
GameLib.API.Socket.Cast.CAST_TYPE_ROOM = 0x1;
|
GameLib.API.Socket.Cast.CAST_TYPE_ROOM = 0x1;
|
||||||
|
|
|
@ -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.prototype.constructor = GameLib.API.Socket.Receive;
|
||||||
|
|
||||||
GameLib.API.Socket.Receive.RECEIVE_TYPE_ROOM = 0x1;
|
GameLib.API.Socket.Receive.RECEIVE_TYPE_ROOM = 0x1;
|
||||||
GameLib.API.Socket.Receive.RECEIVE_TYPE_PEER = 0x2;
|
GameLib.API.Socket.Receive.RECEIVE_TYPE_PEER = 0x2;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an API Socket.Receive from an Object Socket.Receive
|
* Creates an API Socket.Receive from an Object Socket.Receive
|
||||||
* @param socket GameLib.SocketsRuntime
|
* @param socket GameLib.SocketsRuntime
|
||||||
|
|
Loading…
Reference in New Issue