74 lines
3.9 KiB
C++
74 lines
3.9 KiB
C++
#pragma once
|
|
#include "datanodes/player/CPlayerGameStateDataNode.hpp"
|
|
#include "rage/rlGamerInfo.hpp"
|
|
|
|
namespace big::functions
|
|
{
|
|
using run_script_threads = bool(*)(std::uint32_t ops_to_execute);
|
|
using get_native_handler = rage::scrNativeHandler(*)(rage::scrNativeRegistrationTable* registration_table, rage::scrNativeHash hash);
|
|
using fix_vectors = void(*)(rage::scrNativeCallContext* call_ctx);
|
|
|
|
using get_net_game_player = CNetGamePlayer*(*)(Player player);
|
|
|
|
using trigger_script_event = void(*)(int event_group, int64_t* args, int arg_count, int player_bits);
|
|
|
|
|
|
using increment_stat_event = bool(*)(uint64_t net_event_struct, int64_t sender, int64_t a3);
|
|
|
|
using ptr_to_handle = Entity(*)(void* entity);
|
|
using get_script_handle_t = uint64_t(*)(int64_t);
|
|
|
|
using multiplayer_chat_filter = int(__int64 chat_type, const char* input, const char** output);
|
|
using write_player_game_state_data_node = bool(*)(rage::netObject* plr, CPlayerGameStateDataNode* node);
|
|
|
|
using get_gameplay_cam_coords = Vector3(*)();
|
|
|
|
using get_screen_coords_for_world_coords = bool(*)(float* world_coords, float* out_x, float* out_y);
|
|
|
|
using give_pickup_rewards = void(*)(int players, uint32_t hash);
|
|
|
|
// Bitbuffer read/write START
|
|
using read_bitbuf_dword = bool(*)(rage::datBitBuffer* buffer, PVOID read, int bits);
|
|
using read_bitbuf_string = bool(*)(rage::datBitBuffer* buffer, char* read, int bits);
|
|
using read_bitbuf_bool = bool(*)(rage::datBitBuffer* buffer, bool* read, int bits);
|
|
using read_bitbuf_array = bool(*)(rage::datBitBuffer* buffer, PVOID read, int bits, int unk);
|
|
using write_bitbuf_qword = bool(*)(rage::datBitBuffer* buffer, uint64_t val, int bits);
|
|
using write_bitbuf_dword = bool(*)(rage::datBitBuffer* buffer, uint32_t val, int bits);
|
|
using write_bitbuf_int64 = bool(*)(rage::datBitBuffer* buffer, int64_t val, int bits);
|
|
using write_bitbuf_int32 = bool(*)(rage::datBitBuffer* buffer, int32_t val, int bits);
|
|
using write_bitbuf_bool = bool(*)(rage::datBitBuffer* buffer, bool val, int bits);
|
|
using write_bitbuf_array = bool(*)(rage::datBitBuffer* buffer, uint8_t* val, int bits, int unk);
|
|
|
|
// Bitbuffer read/write END
|
|
// Received Event Signatures START
|
|
using send_event_ack = void(*)(rage::netEventMgr* event_manager, CNetGamePlayer* source_player, CNetGamePlayer* target_player, int event_index, int event_handled_bitset);
|
|
// Received Event Signatures END
|
|
|
|
//Sync signatures START
|
|
using get_sync_type_info = const char*(*)(uint16_t sync_type, char a2);
|
|
|
|
using get_sync_tree_for_type = rage::netSyncTree*(*)(CNetworkObjectMgr* mgr, uint16_t sync_type);
|
|
|
|
using get_net_object = rage::netObject*(*)(CNetworkObjectMgr* mgr, int16_t id, bool can_delete_be_pending);
|
|
|
|
using get_net_object_for_player = rage::netObject*(*)(CNetworkObjectMgr*, int16_t, CNetGamePlayer*, bool);
|
|
|
|
using read_bitbuffer_into_sync_tree = void(*)(rage::netSyncTree* tree, uint64_t flag, uint32_t flag2, rage::datBitBuffer* buffer, uint64_t netLogStub);
|
|
//Sync signatures END
|
|
|
|
using reset_network_complaints = void(*)(CNetComplaintMgr* mgr);
|
|
|
|
using fidevice_get_device = rage::fiDevice*(*)(const char* path, bool allow_root);
|
|
using fipackfile_ctor = rage::fiPackfile*(*)(rage::fiPackfile* this_);
|
|
using fipackfile_open_archive = bool(*)(rage::fiPackfile* this_, const char* archive, bool b_true, int type, intptr_t very_false);
|
|
using fipackfile_mount = bool(*)(rage::fiPackfile* this_, const char* mount_point);
|
|
using fipackfile_unmount = bool(*)(const char* mount_point);
|
|
|
|
using start_get_session_by_gamer_handle = bool(*)(int metric_manager, rage::rlGamerHandle* handles, int count, rage::rlSessionByGamerTaskResult* result, int unk, bool* success, int* state);
|
|
using join_session_by_info = bool(*)(Network* network, rage::rlSessionInfo* info, int unk, int flags, rage::rlGamerHandle* handles, int handlecount);
|
|
|
|
using generate_uuid = bool(*)(std::uint64_t* uuid);
|
|
|
|
using send_chat_message = bool(*)(int64_t* send_chat_ptr, rage::rlGamerInfo* game_info, char* message, bool is_team);
|
|
}
|