实现玩家设置同步到服务器
实现玩家离开房间(各种途径) 修改云存读档代码(还未实现) 移除sid,准备之后用uid本地排序序号代替(排序还未实现) 整理代码,框架跟进
This commit is contained in:
@@ -100,8 +100,14 @@ function saveProgress()
|
||||
return saveFile(RANKS,'conf/unlock')
|
||||
end
|
||||
function saveSettings()
|
||||
if WS.status('game')=='running' then
|
||||
NET.player_updateConf()
|
||||
end
|
||||
return saveFile(SETTING,'conf/settings')
|
||||
end
|
||||
function saveUser()
|
||||
return saveFile(USER.__data,'conf/user')
|
||||
end
|
||||
do-- function applySettings()
|
||||
local saturateValues={
|
||||
normal={0,1},
|
||||
@@ -857,7 +863,7 @@ function drawOnlinePlayerCount()
|
||||
gc_setColor(1,1,1)
|
||||
gc_push('transform')
|
||||
gc_replaceTransform(SCR.xOy_ur)
|
||||
gc_printf(text.onlinePlayerCount..":"..NET.onlineCount,-600,80,594,'right')
|
||||
gc_printf(text.onlinePlayerCount:repD(NET.onlineCount),-600,80,594,'right')
|
||||
gc_pop()
|
||||
end
|
||||
function drawWarning()
|
||||
|
||||
Reference in New Issue
Block a user