32 lines
481 B
GDScript
32 lines
481 B
GDScript
class_name ComparisonTable
|
|
extends Node
|
|
|
|
static func compare(index):
|
|
match index:
|
|
"0":
|
|
return "用户名错误"
|
|
"1":
|
|
return "密码错误"
|
|
"2":
|
|
return "用户名或密码为空"
|
|
"3":
|
|
return "用户名以存在"
|
|
"4":
|
|
return "注册成功"
|
|
"5":
|
|
return "变量缺失"
|
|
"6":
|
|
return "未知错误"
|
|
_:
|
|
return index
|
|
pass
|
|
|
|
static func career(index):
|
|
match index:
|
|
"0",0:
|
|
return "战士"
|
|
"2",2:
|
|
return "法师"
|
|
"4",4:
|
|
return "道士"
|