实现玩家设置同步到服务器

实现玩家离开房间(各种途径)
修改云存读档代码(还未实现)
移除sid,准备之后用uid本地排序序号代替(排序还未实现)
整理代码,框架跟进
This commit is contained in:
MrZ_26
2022-10-09 06:47:08 +08:00
parent df7ab20636
commit 7ac6f45b9b
23 changed files with 161 additions and 144 deletions

View File

@@ -133,8 +133,9 @@ return{
serverDown="Oops! Server is down",
requestFailed="Request failed",
onlinePlayerCount="Online",
onlinePlayerCount="Online: $1",
createRoomSuccessed="Room created",
playerKicked="[$1] removed [$2] from room",
started="Playing",
joinRoom="has entered the room.",
leaveRoom="has left the room.",

View File

@@ -132,8 +132,9 @@ return{
-- serverDown="Oops! Server is down",
-- requestFailed="Request failed",
onlinePlayerCount="En línea",
onlinePlayerCount="En línea: $1",
createRoomSuccessed="¡Sala creada con éxito!",
-- playerKicked="[$1] removed [$2] from room",
started="En juego",
joinRoom="entró a la sala.",
leaveRoom="salió de la sala.",

View File

@@ -123,8 +123,9 @@ return{
-- serverDown="Oops! Server is down",
-- requestFailed="Request failed",
-- onlinePlayerCount="Online",
-- onlinePlayerCount="Online: $1",
createRoomSuccessed="Salon créé avec succès !",
-- playerKicked="[$1] removed [$2] from room",
-- started="Playing",
joinRoom="a rejoint le salon.",
leaveRoom="a quitté le salon.",

View File

@@ -134,8 +134,9 @@ return{
-- serverDown="Oops! Server is down",
-- requestFailed="Request failed",
onlinePlayerCount="Online",
onlinePlayerCount="Online: $1",
createRoomSuccessed="Ruang terbuat",
-- playerKicked="[$1] removed [$2] from room",
started="Bermain",
joinRoom="telah memasuki ruangan.",
leaveRoom="telah keluar dari ruangan.",

View File

@@ -134,8 +134,9 @@ return{
-- serverDown="Oops! Server is down",
-- requestFailed="Request failed",
onlinePlayerCount="オンライン人数",
onlinePlayerCount="オンライン人数: $1",
createRoomSuccessed="部屋を建てました",
-- playerKicked="[$1] removed [$2] from room",
started="プレイ中",
joinRoom="が入室しました",
leaveRoom="が退出しました",

View File

@@ -121,8 +121,9 @@ return{
-- serverDown="Oops! Server is down",
-- requestFailed="Request failed",
-- onlinePlayerCount="Online",
-- onlinePlayerCount="Online: $1",
-- createRoomSuccessed="Room successfully created!",
-- playerKicked="[$1] removed [$2] from room",
-- started="Playing",
joinRoom="Entrou a sala.",
leaveRoom="Saiu da sala.",
@@ -135,7 +136,7 @@ return{
chatHistory="------Novas mensagens abaixo------",
-- keySettingInstruction="Press to bind key\nescape: cancel\nbackspace: delete",
-- customBGhelp="Drop image file here to apply custom background",
-- customBGloadFailed="Unsupport image format for custom background",

View File

@@ -133,8 +133,9 @@ return{
serverDown="唉哟!服务器不在线",
requestFailed="请求失败",
onlinePlayerCount="在线人数",
onlinePlayerCount="在线人数: $1",
createRoomSuccessed="创建房间成功!",
playerKicked="<$1>把<$2>移出了房间",
started="游戏中",
joinRoom="进入房间",
leaveRoom="离开房间",
@@ -153,7 +154,7 @@ return{
customBGloadFailed="自定义背景的图片文件格式不支持",
errorMsg="Techmino遭受了雷击需要重新启动。\n我们已收集了一些错误信息,你可以向作者进行反馈。",
tryAnotherBuild="[解码UTF-8错误] 如果你现在用的是Windows系统请重新下载 Techmino-32位 或者 Techmino-64位 (和现在运行的不一样的那个)。",
tryAnotherBuild="[解码UTF-8错误] 如果你现在用的是Windows系统请重新下载 Techmino-32/64位 (和现在运行的不一样的那个)。",
modInstruction="选择你要使用的Mod\n不同Mod会用不同的方式改变初始游戏规则(可能导致不能正常游玩)\n来开发新玩法或者挑战自我吧!\n提醒:开启一些Mod会让成绩无效你也可以用键盘开关Mod按住shift反向",
modInfo={

View File

@@ -133,8 +133,9 @@ return{
serverDown="Error.ServerDown();",
requestFailed="Error.RequestFailed();",
onlinePlayerCount="OnlinePlayerCount",
onlinePlayerCount="OnlinePlayerCount=$1",
createRoomSuccessed="CreateRoom.Successs=true",
playerKicked="[$1]: roomKick([$2])",
started="Room.Playing();",
joinRoom="Room.Join();",
leaveRoom="Room.Leave();",
@@ -153,7 +154,7 @@ return{
customBGloadFailed="Error.Ctm.BG(UnsupportFormat);",
errorMsg="Error.Fatal();\n//请检查语法错误或向作者进行反馈。",
tryAnotherBuild="Error.DecodeUTF8(); //如果你现在用的是Windows系统请重新下载 Techmino-32位 或者 Techmino-64位 (和现在运行的不一样的那个)。",
tryAnotherBuild="Error.DecodeUTF8(); //如果你现在用的是Windows系统请重新下载 Techmino-32/64位 (和现在运行的不一样的那个)。",
modInstruction="Mod.Instruction();\n/*选择你要使用的Mod\n不同Mod会用不同的方式改变初始游戏规则(可能导致不能正常游玩)\n提醒:开启一些Mod会让成绩无效你也可以用键盘开关Mod按住shift反向*/",
modInfo={

View File

@@ -133,8 +133,9 @@ return{
serverDown="哎唷!服務器不在线",
requestFailed="請求失敗",
onlinePlayerCount="在線用戶數",
onlinePlayerCount="在線用戶數: $1",
createRoomSuccessed="房間已創建!",
playerKicked="<$1>把<$2>移出了房間",
started="遊戲中",
joinRoom="進入房間",
leaveRoom="離開房間",
@@ -153,7 +154,7 @@ return{
customBGloadFailed="自定義背景的圖片檔案格式不支持",
errorMsg="Techmino遇到問題需要重新啟動。\n我們已經收集了一些錯誤信息,你可以反饋給作者。",
tryAnotherBuild="[無效的 UTF-8] 如果你使用的是Windows作業系統請嘗試下載Techmino-win32或Techmino-win64與你現在使用的不同的版本",
tryAnotherBuild="[無效的UTF-8] 如果你使用的是Windows作業系統請嘗試下載Techmino-win32或Techmino-win64與你現在使用的不同的版本",
modInstruction="選擇你想使用的Mod\n不同的Mod會以不同的方式改變遊戲規則(可能導致遊戲異常)\n快來開發新玩法或挑戰自我吧!\n提醒開啟Mod會使成績無效你可以使用鍵盤開關Mod按下shift反向",
modInfo={