使用sfs2x引擎进行创建房间的时候,代码如下:
CreateRoomSettings createRoomSettings = new CreateRoomSettings();
createRoomSettings.setName(roomName);
createRoomSettings.setGroupId("default");
createRoomSettings.setMaxUsers(2);
createRoomSettings.setGame(true);
//下面这段代码是指定extension
CreateRoomSettings.RoomExtensionSettings extension = new RoomExtensionSettings("tris", "com.wtgame.main.MainExtension");
createRoomSettings.setExtension(extension);
问题是,这个extension 对象能不能不需要重新new一个,通过zone来获取这个对象