111
This commit is contained in:
15
test/STL.cpp
15
test/STL.cpp
@@ -15,7 +15,9 @@ void STL::DrawDargonBox_STL(char* Buffer)
|
||||
//构造龙盒 模式
|
||||
//DrawDargonModel_STL(Dom["op"].GetInt());
|
||||
DargonModel_STL["op"] = Dom["op"].GetInt();
|
||||
DargonModel_STL["err"] = Dom["err"].GetInt();
|
||||
|
||||
if (DargonModel_STL["err"] != 0)return;//如果不是
|
||||
//构造res包 结构体
|
||||
Dargonresult Res_Buffer[10];
|
||||
if (DargonModel_STL["op"] == 4)
|
||||
@@ -79,9 +81,18 @@ void STL::DrawDargonModel_STL(int Value)
|
||||
DargonModel_STL["op"] = Value;
|
||||
}
|
||||
|
||||
int STL::SelectDargonModel_STL()
|
||||
int STL::SelectDargonModel_STL(int Type)
|
||||
{
|
||||
return DargonModel_STL["op"];
|
||||
switch (Type)
|
||||
{
|
||||
case 0:
|
||||
return DargonModel_STL["op"];
|
||||
break;
|
||||
case 1:
|
||||
return DargonModel_STL["err"];
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int STL::Check_STL(std::string name,int Type,int idx)
|
||||
|
||||
Reference in New Issue
Block a user