弃用原来的联网库函数准备换新,让主分支可运行
This commit is contained in:
@@ -140,19 +140,6 @@ for i=1,#MODOPT do
|
|||||||
M.sel,M.time=0,0
|
M.sel,M.time=0,0
|
||||||
M.color=COLOR[M.color]
|
M.color=COLOR[M.color]
|
||||||
end
|
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
|
--Game tables
|
||||||
PLAYERS={alive={}}--Players data
|
PLAYERS={alive={}}--Players data
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ function scene.update()
|
|||||||
LOADED=true
|
LOADED=true
|
||||||
SFX.play("welcome_sfx")
|
SFX.play("welcome_sfx")
|
||||||
VOC.play("welcome_voc")
|
VOC.play("welcome_voc")
|
||||||
|
--[[TODO
|
||||||
httpRequest(tick_httpREQ_launch,PATH.http..PATH.appInfo)
|
httpRequest(tick_httpREQ_launch,PATH.http..PATH.appInfo)
|
||||||
if USER.auth_token and USER.email then
|
if USER.auth_token and USER.email then
|
||||||
httpRequest(
|
httpRequest(
|
||||||
@@ -210,6 +211,7 @@ function scene.update()
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
if FESTIVAL=="Xmas"then
|
if FESTIVAL=="Xmas"then
|
||||||
LOG.print("==============",COLOR.red)
|
LOG.print("==============",COLOR.red)
|
||||||
LOG.print("Merry Christmas!",COLOR.white)
|
LOG.print("Merry Christmas!",COLOR.white)
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ local function login()
|
|||||||
elseif #password==0 then
|
elseif #password==0 then
|
||||||
LOG.print(text.noPassword)return
|
LOG.print(text.noPassword)return
|
||||||
end
|
end
|
||||||
|
--[[TODO
|
||||||
httpRequest(
|
httpRequest(
|
||||||
tick_httpREQ_newLogin,
|
tick_httpREQ_newLogin,
|
||||||
PATH.http..PATH.auth,
|
PATH.http..PATH.auth,
|
||||||
@@ -68,6 +69,7 @@ local function login()
|
|||||||
password=password,
|
password=password,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
]]
|
||||||
end
|
end
|
||||||
|
|
||||||
local scene={}
|
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="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()
|
WIDGET.newButton{name="online", x=370,y=220,w=200,h=140,color="lCyan", font=40,code=function()
|
||||||
if LOGIN then
|
if LOGIN then
|
||||||
|
--[[TODO
|
||||||
if USER.access_token then
|
if USER.access_token then
|
||||||
httpRequest(
|
httpRequest(
|
||||||
tick_httpREQ_manualAutoLogin,
|
tick_httpREQ_manualAutoLogin,
|
||||||
@@ -132,6 +133,7 @@ scene.widgetList={
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
else
|
else
|
||||||
SCN.go("login")
|
SCN.go("login")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user