弃用原来的联网库函数准备换新,让主分支可运行
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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={}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user