[raknet] Implement RPCMap::AddIdentifierWithFunction

This commit is contained in:
RD42
2024-01-04 23:25:36 +08:00
parent c8b7097a57
commit e0d4481671
4 changed files with 77 additions and 0 deletions

14
raknet/RPCMap.cpp Normal file
View File

@ -0,0 +1,14 @@
// TODO: Implement RPCMap.cpp
// Called from the user thread for the local system
void RPCMap::AddIdentifierWithFunction(unsigned char uniqueIdentifier, void *functionPointer, bool isPointerToMember)
{
RPCNode *node;
node = new RPCNode;
node->uniqueIdentifier = uniqueIdentifier;
node->functionPointer=functionPointer;
node->isPointerToMember=isPointerToMember;
rpcSet[uniqueIdentifier] = node;
}