弃用原来的联网库函数准备换新,让主分支可运行

This commit is contained in:
MrZ626
2021-02-17 01:11:04 +08:00
parent 2a4ca8c5af
commit 3581905462
4 changed files with 6 additions and 13 deletions

View File

@@ -140,19 +140,6 @@ for i=1,#MODOPT do
M.sel,M.time=0,0
M.color=COLOR[M.color]
end
PATH={--Network API paths
url="hdustea.3322.org",
port="10026",
http="/tech/api/v1",
socket="/tech/socket/v1",
appInfo="/app/info",
user="/user",
auth="/auth/auth",
access="/auth/access",
onlineChat="/online/chat",
onlinePlay="/online/play",
}
--Game tables
PLAYERS={alive={}}--Players data

View File

@@ -197,6 +197,7 @@ function scene.update()
LOADED=true
SFX.play("welcome_sfx")
VOC.play("welcome_voc")
--[[TODO
httpRequest(tick_httpREQ_launch,PATH.http..PATH.appInfo)
if USER.auth_token and USER.email then
httpRequest(
@@ -210,6 +211,7 @@ function scene.update()
}
)
end
]]
if FESTIVAL=="Xmas"then
LOG.print("==============",COLOR.red)
LOG.print("Merry Christmas!",COLOR.white)

View File

@@ -58,6 +58,7 @@ local function login()
elseif #password==0 then
LOG.print(text.noPassword)return
end
--[[TODO
httpRequest(
tick_httpREQ_newLogin,
PATH.http..PATH.auth,
@@ -68,6 +69,7 @@ local function login()
password=password,
}
)
]]
end
local scene={}

View File

@@ -109,6 +109,7 @@ scene.widgetList={
WIDGET.newButton{name="offline",x=150,y=220,w=200,h=140,color="lRed", font=40,code=goScene"mode"},
WIDGET.newButton{name="online", x=370,y=220,w=200,h=140,color="lCyan", font=40,code=function()
if LOGIN then
--[[TODO
if USER.access_token then
httpRequest(
tick_httpREQ_manualAutoLogin,
@@ -132,6 +133,7 @@ scene.widgetList={
}
)
end
]]
else
SCN.go("login")
end