 |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
17 std::function<
void(
Result,
Lobby const&)> callback);
20 std::function<
void(
Result)> callback);
24 std::function<
void(
Result,
Lobby const&)> callback);
26 std::function<
void(
Result,
Lobby const&)> callback);
45 std::function<
void(
Result)> callback);
49 std::function<
void(
Result)> callback);
void LobbyCount(std::int32_t *count)
Definition: lobby_manager.cpp:469
Definition: achievement_manager.cpp:12
static void DISCORD_CALLBACK OnLobbyUpdate(void *callbackData, int64_t lobbyId)
Definition: lobby_manager.cpp:16
EDiscordResult
Definition: ffi.h:45
char DiscordLobbySecret[128]
Definition: ffi.h:236
char DiscordMetadataKey[256]
Definition: ffi.h:237
Result SendNetworkMessage(LobbyId lobbyId, UserId userId, std::uint8_t channelId, std::uint8_t *data, std::uint32_t dataLength)
Definition: lobby_manager.cpp:543
Result GetLobbyMetadataValue(LobbyId lobbyId, MetadataKey key, char value[4096])
Definition: lobby_manager.cpp:293
Event< std::int64_t, std::int64_t, std::uint8_t *, std::uint32_t > OnLobbyMessage
Definition: lobby_manager.h:71
Result ConnectNetwork(LobbyId lobbyId)
Definition: lobby_manager.cpp:518
static void DISCORD_CALLBACK OnMemberUpdate(void *callbackData, int64_t lobbyId, int64_t userId)
Definition: lobby_manager.cpp:51
void UpdateLobby(LobbyId lobbyId, LobbyTransaction const &transaction, std::function< void(Result)> callback)
Definition: lobby_manager.cpp:184
char const * LobbySecret
Definition: types.h:203
void SendLobbyMessage(LobbyId lobbyId, std::uint8_t *data, std::uint32_t dataLength, std::function< void(Result)> callback)
Definition: lobby_manager.cpp:424
Result GetMemberUserId(LobbyId lobbyId, std::int32_t index, UserId *userId)
Definition: lobby_manager.cpp:336
Result GetMemberUpdateTransaction(LobbyId lobbyId, UserId userId, LobbyMemberTransaction *transaction)
Definition: lobby_manager.cpp:153
void UpdateMember(LobbyId lobbyId, UserId userId, LobbyMemberTransaction const &transaction, std::function< void(Result)> callback)
Definition: lobby_manager.cpp:401
Event< std::int64_t, std::int64_t, std::uint8_t, std::uint8_t *, std::uint32_t > OnNetworkMessage
Definition: lobby_manager.h:73
IDiscordLobbyMemberTransaction ** Receive()
Definition: types.h:543
unsigned char uint8_t
Definition: stdint.h:15
Result GetLobbyMetadataKey(LobbyId lobbyId, std::int32_t index, char key[256])
Definition: lobby_manager.cpp:304
Result GetLobbyId(std::int32_t index, LobbyId *lobbyId)
Definition: lobby_manager.cpp:478
Result LobbyMetadataCount(LobbyId lobbyId, std::int32_t *count)
Definition: lobby_manager.cpp:315
Result GetLobbyActivitySecret(LobbyId lobbyId, char secret[128])
Definition: lobby_manager.cpp:282
Result GetLobbyUpdateTransaction(LobbyId lobbyId, LobbyTransaction *transaction)
Definition: lobby_manager.cpp:142
Result GetSearchQuery(LobbySearchQuery *query)
Definition: lobby_manager.cpp:443
Result GetMemberUser(LobbyId lobbyId, UserId userId, User *user)
Definition: lobby_manager.cpp:347
void DisconnectLobby(LobbyId lobbyId, std::function< void(Result)> callback)
Definition: lobby_manager.cpp:257
int int32_t
Definition: stdint.h:13
Result
Definition: types.h:12
void DisconnectVoice(LobbyId lobbyId, std::function< void(Result)> callback)
Definition: lobby_manager.cpp:503
void ConnectLobbyWithActivitySecret(LobbySecret activitySecret, std::function< void(Result, Lobby const &)> callback)
Definition: lobby_manager.cpp:238
void DeleteLobby(LobbyId lobbyId, std::function< void(Result)> callback)
Definition: lobby_manager.cpp:205
Definition: socket.cpp:16
Event< std::int64_t, std::int64_t, bool > OnSpeaking
Definition: lobby_manager.h:72
long long int64_t
Definition: stdint.h:14
char DiscordMetadataValue[4096]
Definition: ffi.h:238
Result GetLobbyCreateTransaction(LobbyTransaction *transaction)
Definition: lobby_manager.cpp:132
Result DisconnectNetwork(LobbyId lobbyId)
Definition: lobby_manager.cpp:524
#define DISCORD_CALLBACK
Definition: ffi.h:19
Result MemberCount(LobbyId lobbyId, std::int32_t *count)
Definition: lobby_manager.cpp:326
Result GetMemberMetadataKey(LobbyId lobbyId, UserId userId, std::int32_t index, char key[256])
Definition: lobby_manager.cpp:376
unsigned int uint32_t
Definition: stdint.h:17
void Search(LobbySearchQuery const &query, std::function< void(Result)> callback)
Definition: lobby_manager.cpp:453
Result FlushNetwork()
Definition: lobby_manager.cpp:530
static void DISCORD_CALLBACK OnMemberDisconnect(void *callbackData, int64_t lobbyId, int64_t userId)
Definition: lobby_manager.cpp:62
Result GetLobby(LobbyId lobbyId, Lobby *lobby)
Definition: lobby_manager.cpp:272
void CreateLobby(LobbyTransaction const &transaction, std::function< void(Result, Lobby const &)> callback)
Definition: lobby_manager.cpp:166
Snowflake LobbyId
Definition: types.h:202
ARPHIC PUBLIC LICENSE Ltd Yung Chi Taiwan All rights reserved except as specified below Everyone is permitted to copy and distribute verbatim copies of this license but changing it is forbidden Preamble The licenses for most software are designed to take away your freedom to share and change it By the ARPHIC PUBLIC LICENSE specifically permits and encourages you to use this provided that you give the recipients all the rights that we gave you and make sure they can get the modifications of this software Legal Terms Font means the TrueType fonts AR PL Mingti2L AR PL KaitiM AR PL KaitiM and the derivatives of those fonts created through any modification including modifying reordering converting changing font or adding deleting some characters in from glyph table PL means Public License Copyright Holder means whoever is named in the copyright or copyrights for the Font You means the or person redistributing or modifying the Font Freely Available means that you have the freedom to copy or modify the Font as well as redistribute copies of the Font under the same conditions you not price If you you can charge for this service Copying &Distribution You may copy and distribute verbatim copies of this Font in any without provided that you retain this license including modifying reordering converting changing font or adding deleting some characters in from glyph and copy and distribute such modifications under the terms of Section provided that the following conditions are such as by offering access to copy the modifications from a designated or distributing the modifications on a medium customarily used for software interchange c If the modified fonts normally reads commands interactively when you must cause when started running for such interactive use in the most ordinary to print or display an announcement including an appropriate copyright notice and a notice that there is no and telling the user how to view a copy of this License These requirements apply to the modified work as a whole If identifiable sections of that work are not derived from the and can be reasonably considered independent and separate works in then this License and its do not apply to those sections when you distribute them as separate works mere aggregation of another work not based on the Font with the Font on a volume of a storage or distribution medium does not bring the other work under the scope of this License Condition Subsequent You may not or distribute the Font except as expressly provided under this License Any attempt otherwise to sublicense or distribute the Font will automatically retroactively void your rights under this License parties who have received copies or rights from you under this License will keep their licenses valid so long as such parties remain in full compliance Acceptance You are not required to accept this since you have not signed it nothing else grants you permission to sublicense or distribute the Font These actions are prohibited by law if you do not accept this License by sublicensing or distributing the you indicate your acceptance of this License and all its terms and conditions Automatic Receipt Each time you redistribute the the recipient automatically receives a license from the original licensor to distribute or modify the Font subject to these terms and conditions You may not impose any further restrictions on the recipients exercise of the rights granted herein You are not responsible for enforcing compliance by third parties to this License Contradiction as a consequence of a court judgment or allegation of patent infringement or for any other reason(not limited to patent issues)
static void DISCORD_CALLBACK OnSpeaking(void *callbackData, int64_t lobbyId, int64_t userId, bool speaking)
Definition: lobby_manager.cpp:90
discord::LobbyManager & LobbyManager()
Definition: core.cpp:119
Event< std::int64_t > OnLobbyUpdate
Definition: lobby_manager.h:66
Definition: lobby_manager.h:7
IDiscordLobbyTransaction ** Receive()
Definition: types.h:531
static void DISCORD_CALLBACK OnMemberConnect(void *callbackData, int64_t lobbyId, int64_t userId)
Definition: lobby_manager.cpp:38
static void DISCORD_CALLBACK OnLobbyMessage(void *callbackData, int64_t lobbyId, int64_t userId, uint8_t *data, uint32_t dataLength)
Definition: lobby_manager.cpp:75
Result MemberMetadataCount(LobbyId lobbyId, UserId userId, std::int32_t *count)
Definition: lobby_manager.cpp:390
void ConnectLobby(LobbyId lobbyId, LobbySecret secret, std::function< void(Result, Lobby const &)> callback)
Definition: lobby_manager.cpp:220
Event< std::int64_t, std::uint32_t > OnLobbyDelete
Definition: lobby_manager.h:67
static void DISCORD_CALLBACK OnNetworkMessage(void *callbackData, int64_t lobbyId, int64_t userId, uint8_t channelId, uint8_t *data, uint32_t dataLength)
Definition: lobby_manager.cpp:104
Event< std::int64_t, std::int64_t > OnMemberUpdate
Definition: lobby_manager.h:69
char const * MetadataKey
Definition: types.h:204
Definition: lobby_manager.cpp:14
Event< std::int64_t, std::int64_t > OnMemberConnect
Definition: lobby_manager.h:68
Event< std::int64_t, std::int64_t > OnMemberDisconnect
Definition: lobby_manager.h:70
IDiscordLobbySearchQuery ** Receive()
Definition: types.h:560
void ConnectVoice(LobbyId lobbyId, std::function< void(Result)> callback)
Definition: lobby_manager.cpp:488
Snowflake UserId
Definition: types.h:199
Result OpenNetworkChannel(LobbyId lobbyId, std::uint8_t channelId, bool reliable)
Definition: lobby_manager.cpp:536
Result GetMemberMetadataValue(LobbyId lobbyId, UserId userId, MetadataKey key, char value[4096])
Definition: lobby_manager.cpp:358
static void DISCORD_CALLBACK OnLobbyDelete(void *callbackData, int64_t lobbyId, uint32_t reason)
Definition: lobby_manager.cpp:27