[saco] Implement RegisterScriptRPCs and UnRegisterScriptRPCs

This commit is contained in:
RD42 2024-01-29 19:43:52 +08:00
parent 38ce3c1439
commit d86e5cd53c
3 changed files with 325 additions and 0 deletions

306
saco/net/scriptrpc.cpp Normal file
View File

@ -0,0 +1,306 @@
#include "../main.h"
void ScrUnkA7(RPCParameters *rpcParams) {}
void ScrUnk38(RPCParameters *rpcParams) {}
void ScrUnk90(RPCParameters *rpcParams) {}
void ScrUnk91(RPCParameters *rpcParams) {}
void ScrUnk92(RPCParameters *rpcParams) {}
void ScrUnk93(RPCParameters *rpcParams) {}
void ScrUnk94(RPCParameters *rpcParams) {}
void ScrUnk95(RPCParameters *rpcParams) {}
void ScrUnk2C(RPCParameters *rpcParams) {}
void ScrUnk2D(RPCParameters *rpcParams) {}
void ScrUnk2E(RPCParameters *rpcParams) {}
void ScrUnk2F(RPCParameters *rpcParams) {}
void ScrUnk4F(RPCParameters *rpcParams) {}
void ScrUnk50(RPCParameters *rpcParams) {}
void ScrUnk63(RPCParameters *rpcParams) {}
void ScrUnk7A(RPCParameters *rpcParams) {}
void ScrUnk7B(RPCParameters *rpcParams) {}
void ScrUnk7C(RPCParameters *rpcParams) {}
void ScrUnk7D(RPCParameters *rpcParams)
{
// nothing
}
void ScrUnk7E(RPCParameters *rpcParams) {}
void ScrUnk7F(RPCParameters *rpcParams) {}
void ScrUnk39(RPCParameters *rpcParams) {}
void ScrUnk4A(RPCParameters *rpcParams) {}
void ScrUnk4B(RPCParameters *rpcParams) {}
void ScrUnk85(RPCParameters *rpcParams) {}
void ScrUnk86(RPCParameters *rpcParams) {}
void ScrUnk87(RPCParameters *rpcParams) {}
void ScrUnk69(RPCParameters *rpcParams) {}
void ScrUnk6C(RPCParameters *rpcParams) {}
void ScrUnk78(RPCParameters *rpcParams) {}
void ScrUnk79(RPCParameters *rpcParams) {}
void ScrUnk55(RPCParameters *rpcParams) {}
void ScrUnk56(RPCParameters *rpcParams) {}
void ScrUnk57(RPCParameters *rpcParams) {}
void ScrUnk58(RPCParameters *rpcParams) {}
void ScrUnk68(RPCParameters *rpcParams) {}
void ScrUnk59(RPCParameters *rpcParams) {}
void ScrUnk5A(RPCParameters *rpcParams) {}
void ScrUnk5B(RPCParameters *rpcParams) {}
void ScrUnk6F(RPCParameters *rpcParams) {}
void ScrUnk62(RPCParameters *rpcParams) {}
void ScrUnk5C(RPCParameters *rpcParams) {}
void ScrUnk96(RPCParameters *rpcParams) {}
void ScrUnk70(RPCParameters *rpcParams) {}
void ScrUnk44(RPCParameters *rpcParams) {}
void ScrUnk45(RPCParameters *rpcParams) {}
void ScrUnk99(RPCParameters *rpcParams) {}
void ScrUnk0B(RPCParameters *rpcParams) {}
void ScrUnk0C(RPCParameters *rpcParams) {}
void ScrUnk0D(RPCParameters *rpcParams) {}
void ScrUnk0E(RPCParameters *rpcParams) {}
void ScrUnk46(RPCParameters *rpcParams) {}
void ScrUnk47(RPCParameters *rpcParams) {}
void ScrUnk48(RPCParameters *rpcParams) {}
void ScrUnk49(RPCParameters *rpcParams) {}
void ScrUnk9C(RPCParameters *rpcParams) {}
void ScrUnk9D(RPCParameters *rpcParams) {}
void ScrUnk9E(RPCParameters *rpcParams) {}
void ScrUnk9F(RPCParameters *rpcParams) {}
void ScrUnkA0(RPCParameters *rpcParams) {}
void ScrUnkA1(RPCParameters *rpcParams) {}
void ScrUnkA2(RPCParameters *rpcParams) {}
void ScrUnk0F(RPCParameters *rpcParams) {}
void ScrUnk10(RPCParameters *rpcParams) {}
void ScrUnk11(RPCParameters *rpcParams) {}
void ScrUnk12(RPCParameters *rpcParams) {}
void ScrUnk13(RPCParameters *rpcParams) {}
void ScrUnk14(RPCParameters *rpcParams) {}
void ScrUnk15(RPCParameters *rpcParams) {}
void ScrUnk16(RPCParameters *rpcParams) {}
void ScrUnk40(RPCParameters *rpcParams) {}
void ScrUnk41(RPCParameters *rpcParams) {}
void ScrUnk42(RPCParameters *rpcParams) {}
void ScrUnk37(RPCParameters *rpcParams) {}
void ScrUnk21(RPCParameters *rpcParams) {}
void ScrUnk23(RPCParameters *rpcParams) {}
void ScrUnk43(RPCParameters *rpcParams) {}
void ScrUnk71(RPCParameters *rpcParams) {}
void ScrUnk29(RPCParameters *rpcParams) {}
void ScrUnk2A(RPCParameters *rpcParams) {}
void ScrUnk2B(RPCParameters *rpcParams) {}
void ScrUnk51(RPCParameters *rpcParams) {}
void ScrUnk52(RPCParameters *rpcParams) {}
void ScrUnk53(RPCParameters *rpcParams) {}
void ScrUnk54(RPCParameters *rpcParams) {}
void ScrUnkA9(RPCParameters *rpcParams) {}
void ScrUnkAD(RPCParameters *rpcParams) {}
void ScrUnkAE(RPCParameters *rpcParams) {}
void ScrUnkAF(RPCParameters *rpcParams) {}
void ScrUnkB0(RPCParameters *rpcParams) {}
void ScrUnkB2(RPCParameters *rpcParams) {}
void ScrUnk30(RPCParameters *rpcParams) {}
void ScrUnk4C(RPCParameters *rpcParams) {}
void ScrUnk4D(RPCParameters *rpcParams) {}
void ScrUnk4E(RPCParameters *rpcParams) {}
//----------------------------------------------------
void RegisterScriptRPCs(RakClientInterface* pRakClient)
{
REGISTER_STATIC_RPC(pRakClient, ScrUnkA7);
REGISTER_STATIC_RPC(pRakClient, ScrUnk38);
REGISTER_STATIC_RPC(pRakClient, ScrUnk90);
REGISTER_STATIC_RPC(pRakClient, ScrUnk91);
REGISTER_STATIC_RPC(pRakClient, ScrUnk92);
REGISTER_STATIC_RPC(pRakClient, ScrUnk93);
REGISTER_STATIC_RPC(pRakClient, ScrUnk94);
REGISTER_STATIC_RPC(pRakClient, ScrUnk95);
REGISTER_STATIC_RPC(pRakClient, ScrUnk2C);
REGISTER_STATIC_RPC(pRakClient, ScrUnk2D);
REGISTER_STATIC_RPC(pRakClient, ScrUnk2E);
REGISTER_STATIC_RPC(pRakClient, ScrUnk2F);
REGISTER_STATIC_RPC(pRakClient, ScrUnk4F);
REGISTER_STATIC_RPC(pRakClient, ScrUnk50);
REGISTER_STATIC_RPC(pRakClient, ScrUnk63);
REGISTER_STATIC_RPC(pRakClient, ScrUnk7A);
REGISTER_STATIC_RPC(pRakClient, ScrUnk7B);
REGISTER_STATIC_RPC(pRakClient, ScrUnk7C);
REGISTER_STATIC_RPC(pRakClient, ScrUnk7D);
REGISTER_STATIC_RPC(pRakClient, ScrUnk7E);
REGISTER_STATIC_RPC(pRakClient, ScrUnk7F);
REGISTER_STATIC_RPC(pRakClient, ScrUnk39);
REGISTER_STATIC_RPC(pRakClient, ScrUnk4A);
REGISTER_STATIC_RPC(pRakClient, ScrUnk4B);
REGISTER_STATIC_RPC(pRakClient, ScrUnk85);
REGISTER_STATIC_RPC(pRakClient, ScrUnk86);
REGISTER_STATIC_RPC(pRakClient, ScrUnk87);
REGISTER_STATIC_RPC(pRakClient, ScrUnk69);
REGISTER_STATIC_RPC(pRakClient, ScrUnk6C);
REGISTER_STATIC_RPC(pRakClient, ScrUnk78);
REGISTER_STATIC_RPC(pRakClient, ScrUnk79);
REGISTER_STATIC_RPC(pRakClient, ScrUnk55);
REGISTER_STATIC_RPC(pRakClient, ScrUnk56);
REGISTER_STATIC_RPC(pRakClient, ScrUnk57);
REGISTER_STATIC_RPC(pRakClient, ScrUnk58);
REGISTER_STATIC_RPC(pRakClient, ScrUnk68);
REGISTER_STATIC_RPC(pRakClient, ScrUnk59);
REGISTER_STATIC_RPC(pRakClient, ScrUnk5A);
REGISTER_STATIC_RPC(pRakClient, ScrUnk5B);
REGISTER_STATIC_RPC(pRakClient, ScrUnk6F);
REGISTER_STATIC_RPC(pRakClient, ScrUnk62);
REGISTER_STATIC_RPC(pRakClient, ScrUnk5C);
REGISTER_STATIC_RPC(pRakClient, ScrUnk96);
REGISTER_STATIC_RPC(pRakClient, ScrUnk70);
REGISTER_STATIC_RPC(pRakClient, ScrUnk44);
REGISTER_STATIC_RPC(pRakClient, ScrUnk45);
REGISTER_STATIC_RPC(pRakClient, ScrUnk99);
REGISTER_STATIC_RPC(pRakClient, ScrUnk0B);
REGISTER_STATIC_RPC(pRakClient, ScrUnk0C);
REGISTER_STATIC_RPC(pRakClient, ScrUnk0D);
REGISTER_STATIC_RPC(pRakClient, ScrUnk0E);
REGISTER_STATIC_RPC(pRakClient, ScrUnk46);
REGISTER_STATIC_RPC(pRakClient, ScrUnk47);
REGISTER_STATIC_RPC(pRakClient, ScrUnk48);
REGISTER_STATIC_RPC(pRakClient, ScrUnk49);
REGISTER_STATIC_RPC(pRakClient, ScrUnk9C);
REGISTER_STATIC_RPC(pRakClient, ScrUnk9D);
REGISTER_STATIC_RPC(pRakClient, ScrUnk9E);
REGISTER_STATIC_RPC(pRakClient, ScrUnk9F);
REGISTER_STATIC_RPC(pRakClient, ScrUnkA0);
REGISTER_STATIC_RPC(pRakClient, ScrUnkA1);
REGISTER_STATIC_RPC(pRakClient, ScrUnkA2);
REGISTER_STATIC_RPC(pRakClient, ScrUnk0F);
REGISTER_STATIC_RPC(pRakClient, ScrUnk10);
REGISTER_STATIC_RPC(pRakClient, ScrUnk11);
REGISTER_STATIC_RPC(pRakClient, ScrUnk12);
REGISTER_STATIC_RPC(pRakClient, ScrUnk13);
REGISTER_STATIC_RPC(pRakClient, ScrUnk14);
REGISTER_STATIC_RPC(pRakClient, ScrUnk15);
REGISTER_STATIC_RPC(pRakClient, ScrUnk16);
REGISTER_STATIC_RPC(pRakClient, ScrUnk40);
REGISTER_STATIC_RPC(pRakClient, ScrUnk41);
REGISTER_STATIC_RPC(pRakClient, ScrUnk42);
REGISTER_STATIC_RPC(pRakClient, ScrUnk37);
REGISTER_STATIC_RPC(pRakClient, ScrUnk21);
REGISTER_STATIC_RPC(pRakClient, ScrUnk23);
REGISTER_STATIC_RPC(pRakClient, ScrUnk43);
REGISTER_STATIC_RPC(pRakClient, ScrUnk71);
REGISTER_STATIC_RPC(pRakClient, ScrUnk29);
REGISTER_STATIC_RPC(pRakClient, ScrUnk2A);
REGISTER_STATIC_RPC(pRakClient, ScrUnk2B);
REGISTER_STATIC_RPC(pRakClient, ScrUnk51);
REGISTER_STATIC_RPC(pRakClient, ScrUnk52);
REGISTER_STATIC_RPC(pRakClient, ScrUnk53);
REGISTER_STATIC_RPC(pRakClient, ScrUnk54);
REGISTER_STATIC_RPC(pRakClient, ScrUnkA9);
REGISTER_STATIC_RPC(pRakClient, ScrUnkAD);
REGISTER_STATIC_RPC(pRakClient, ScrUnkAE);
REGISTER_STATIC_RPC(pRakClient, ScrUnkAF);
REGISTER_STATIC_RPC(pRakClient, ScrUnkB0);
REGISTER_STATIC_RPC(pRakClient, ScrUnkB2);
REGISTER_STATIC_RPC(pRakClient, ScrUnk30);
REGISTER_STATIC_RPC(pRakClient, ScrUnk4C);
REGISTER_STATIC_RPC(pRakClient, ScrUnk4D);
REGISTER_STATIC_RPC(pRakClient, ScrUnk4E);
}
//----------------------------------------------------
void UnRegisterScriptRPCs(RakClientInterface* pRakClient)
{
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkA7);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk4A);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk4B);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk85);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk86);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk87);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk69);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk6C);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk78);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk79);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk55);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk56);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk57);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk58);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk68);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk59);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk5A);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk5B);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk6F);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk62);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk5C);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk96);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk70);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk38);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk90);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk91);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk92);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk93);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk94);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk95);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk2C);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk2D);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk2E);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk2F);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk4F);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk50);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk63);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk7A);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk7B);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk7C);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk7D);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk7E);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk7F);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk39);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk21);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk23);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk43);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk71);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk29);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk2A);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk2B);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk44);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk45);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk0B);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk99);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk0C);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk0D);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk0E);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk46);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk47);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk48);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk49);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk9C);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk9D);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk9E);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk9F);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkA0);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkA1);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkA2);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk0F);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk10);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk11);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk12);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk13);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk14);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk15);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk16);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk40);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk41);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk37);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk51);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk52);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk53);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk54);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkA9);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkAD);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkAE);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkAF);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkB0);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnkB2);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk30);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk4C);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk4D);
UNREGISTER_STATIC_RPC(pRakClient, ScrUnk4E);
}
//----------------------------------------------------

13
saco/net/scriptrpc.h Normal file
View File

@ -0,0 +1,13 @@
#pragma once
#ifndef SAMPCLI_SCRIPTRPC_H
#define SAMPCLI_SCRIPTRPC_H
//----------------------------------------------------
void RegisterScriptRPCs(RakClientInterface* pRakClient);
void UnRegisterScriptRPCs(RakClientInterface* pRakClient);
//----------------------------------------------------
#endif

View File

@ -246,6 +246,12 @@
<File
RelativePath=".\net\netgame.h">
</File>
<File
RelativePath=".\net\scriptrpc.cpp">
</File>
<File
RelativePath=".\net\scriptrpc.h">
</File>
</Filter>
<Filter
Name="ttmath"