Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed May 17, 2023
1 parent c4b38f5 commit d35a682
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-colyseus-app",
"version": "0.15.8",
"version": "0.15.9",
"description": "npm init template for bootstrapping an empty Colyseus project",
"main": "lib/index.js",
"bin": {
Expand Down
2 changes: 0 additions & 2 deletions templates/esm/src/app.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import config from "@colyseus/tools";
import { monitor } from "@colyseus/monitor";
import { WebSocketTransport } from "@colyseus/ws-transport";

/**
* Import your Room files
*/
import { MyRoom } from "./rooms/MyRoom.js";

export default config.default({
initializeTransport: (options) => new WebSocketTransport(options),

initializeGameServer: (gameServer) => {
/**
Expand Down
1 change: 0 additions & 1 deletion templates/javascript/src/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const { monitor } = require("@colyseus/monitor");
const { MyRoom } = require("./rooms/MyRoom");

module.exports = config({
getId: () => "Your Colyseus App",

initializeGameServer: (gameServer) => {
/**
Expand Down
1 change: 0 additions & 1 deletion templates/typescript/src/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { monitor } from "@colyseus/monitor";
import { MyRoom } from "./rooms/MyRoom";

export default config({
getId: () => "Your Colyseus App",

initializeGameServer: (gameServer) => {
/**
Expand Down
3 changes: 1 addition & 2 deletions templates/typescript/src/rooms/MyRoom.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Room, Client } from "colyseus";
import { Room, Client } from "@colyseus/core";
import { MyRoomState } from "./schema/MyRoomState";

export class MyRoom extends Room<MyRoomState> {
Expand All @@ -11,7 +11,6 @@ export class MyRoom extends Room<MyRoomState> {
// handle "type" message
//
});

}

onJoin (client: Client, options: any) {
Expand Down

0 comments on commit d35a682

Please sign in to comment.