colyseus.js
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -27,4 +27,2 @@ 'use strict'; | ||
var _room2 = _interopRequireDefault(_room); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -88,3 +86,3 @@ | ||
if (!this.rooms[roomName]) { | ||
this.rooms[roomName] = _room2.default.create(this, roomName); | ||
this.rooms[roomName] = (0, _room.createRoom)(this, roomName); | ||
} | ||
@@ -91,0 +89,0 @@ |
@@ -8,3 +8,3 @@ 'use strict'; | ||
}); | ||
exports.create = create; | ||
exports.createRoom = createRoom; | ||
@@ -47,4 +47,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function create(client, name) { | ||
function createRoom(client, name) { | ||
return new Room(client, name); | ||
} |
{ | ||
"name": "colyseus.js", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "JavaScript client for Colyseus MMO Game Server", | ||
@@ -5,0 +5,0 @@ "keywords": ["mmo", "game", "client", "networking", "websockets"], |
@@ -6,3 +6,3 @@ import WebSocketClient from 'websocket.js' | ||
import protocol from './protocol' | ||
import room from './room' | ||
import { createRoom } from './room' | ||
@@ -44,3 +44,3 @@ class Colyseus extends WebSocketClient { | ||
if (!this.rooms[ roomName ]) { | ||
this.rooms[ roomName ] = room.create(this, roomName) | ||
this.rooms[ roomName ] = createRoom(this, roomName) | ||
} | ||
@@ -47,0 +47,0 @@ |
@@ -23,4 +23,4 @@ var EventEmitter = require('events').EventEmitter | ||
export function create (client, name) { | ||
export function createRoom (client, name) { | ||
return new Room(client, name) | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1273875
5567