#ifndef __ACE_SDK_SERVER_TICKET_H__ #define __ACE_SDK_SERVER_TICKET_H__ #include "ace_sdk_account.h" #include "ace_sdk_server_ticket_impl.h" #pragma pack(push, 1) #define ACE_SDK_MAX_TICKET_LENGTH 1024 typedef struct __AceSdkTicket { /** * It represents the actual length of 'ticket_'. */ uint32_t ticket_len_; /** * Is a C-style string generaged locally by ACE SDK. */ char ticket_[ACE_SDK_MAX_TICKET_LENGTH]; } AceSdkTicket; #pragma pack(pop) /** * @brief It must be called when a player tries to enter the game. * @brief If the obtained ticket is not sent to the client ACE SDK, the player must be prohibited from entering the game. * @param account Account for player. * @param ticket Ticket used to verify players for ACE. */ AceSdkResult ace_sdk_server_get_ticket(const AceSdkAccount* account, AceSdkTicket* ticket); #endif // __ACE_SDK_SERVER_TICKET_H__