龙盒完成初版

This commit is contained in:
2022-03-15 09:21:02 +08:00
parent ce6413df51
commit 2e11642e49
6 changed files with 212 additions and 43 deletions

View File

@@ -1,13 +1,8 @@
#include "pch.h"
#include "sock.h"
#include "rapidjson/document.h"
#include "rapidjson/writer.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/filereadstream.h"
#include "rapidjson/filewritestream.h"
#include "rapidjson/istreamwrapper.h"
#include "STL.h"
#include "DNFTOOL.h"
@@ -20,35 +15,12 @@ void sock::Pack_
Net_Get_Buffer(Buffer, Size);
Buffer[Size] = '\0';
rapidjson::Document Dom;
Dom.Parse(Buffer);
//뭐芚질분 친駕
//DargonModel_STL.emplace("op", Dom["op"].GetInt());
DargonModel_STL["op"] = Dom["op"].GetInt();
std::cout << DargonModel_STL["op"] << std::endl;
STL::DrawDargonBox_STL(Buffer);
/*
if (DargonModel_STL["op"] == 4 || DargonModel_STL["op"] == 6)
{
//뭐芚res관 써뭐竟
Dargonresult Res_Buffer[10];
for (int i = 0; i < 10; ++i)
{
Res_Buffer[i].ItemIndex = Dom["result"][i]["item"].GetInt();
Res_Buffer[i].ItemNum = Dom["result"][i]["num"].GetInt();
Res_Buffer[i].ItemGrade = Dom["result"][i]["grade"].GetInt();
}
//뭐芚질분悧 써뭐竟
DargonMap M_Buffer;
M_Buffer.LuckyValue = Dom["luckyvalue"].GetInt();
for (int b = 0; b < 10; ++b)
{
M_Buffer.Result[b] = Res_Buffer[b];
}
//뭐芚 질분 쉽쟨鑒앴
DargonState_STL["dargonmap"] = M_Buffer;
}
char* a = (char*)"{\"uid\":2,\"cid\":36,\"op\":1}";
_SendpacksType(*_SendClass, 0, 130);
_SendPacksChar(*_SendClass, 0, a,strlen(a));
_SendPacks();
*/
std::cout << u8"130ºÅÊÕ°ü³É¹¦" << std::endl;