feat(Util/Session): Added join_type function
This commit is contained in:
parent
996bf1a678
commit
6c882c6c36
19
BigBaseV2/src/util/session.hpp
Normal file
19
BigBaseV2/src/util/session.hpp
Normal file
@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include "core/data/session_types.hpp"
|
||||
#include "script_global.hpp"
|
||||
#include "script.hpp"
|
||||
|
||||
namespace big::session
|
||||
{
|
||||
void join_type(SessionType session)
|
||||
{
|
||||
if (session.id == eSessionType::LEAVE_ONLINE)
|
||||
*script_global(1312443).at(2).as<int*>() = -1;
|
||||
else
|
||||
*script_global(1312860).as<int*>() = (int)session.id;
|
||||
|
||||
*script_global(1312443).as<int*>() = 1;
|
||||
script::get_current()->yield(200ms);
|
||||
*script_global(1312443).as<int*>() = 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user