2019-03-21 20:18:31 +01:00
|
|
|
#pragma once
|
2022-10-29 05:54:32 -04:00
|
|
|
#include "datanodes/player/CPlayerGameStateDataNode.hpp"
|
2019-03-21 20:18:31 +01:00
|
|
|
|
|
|
|
namespace big::functions
|
|
|
|
{
|
2022-07-05 16:54:45 -04:00
|
|
|
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);
|
2021-05-19 00:41:55 +02:00
|
|
|
|
2022-07-05 16:54:45 -04:00
|
|
|
using get_net_game_player = CNetGamePlayer*(*)(Player player);
|
2021-07-26 13:38:28 +02:00
|
|
|
|
2022-07-05 16:54:45 -04:00
|
|
|
using trigger_script_event = void(*)(int event_group, int64_t* args, int arg_count, int player_bits);
|
2021-05-25 12:58:33 +02:00
|
|
|
|
2022-10-29 05:54:32 -04:00
|
|
|
|
2022-07-05 16:54:45 -04:00
|
|
|
using increment_stat_event = bool(*)(uint64_t net_event_struct, int64_t sender, int64_t a3);
|
2021-05-25 14:44:35 +02:00
|
|
|
|
2022-07-05 16:54:45 -04:00
|
|
|
using ptr_to_handle = Entity(*)(void* entity);
|
2022-10-18 15:08:05 -04:00
|
|
|
using get_script_handle_t = uint64_t(*)(int64_t);
|
2022-10-26 15:38:01 -04:00
|
|
|
|
|
|
|
using multiplayer_chat_filter = int(__int64 chat_type, const char* input, const char** output);
|
2022-10-29 05:54:32 -04:00
|
|
|
using write_player_game_state_data_node = bool(*)(rage::netObject* plr, CPlayerGameStateDataNode* node);
|
2021-08-05 23:06:47 +02:00
|
|
|
|
2022-07-05 16:54:45 -04:00
|
|
|
using get_gameplay_cam_coords = Vector3(*)();
|
2022-03-09 00:03:14 +01:00
|
|
|
|
2022-07-05 16:54:45 -04:00
|
|
|
using get_screen_coords_for_world_coords = bool(*)(float* world_coords, float* out_x, float* out_y);
|
2022-03-09 00:03:14 +01:00
|
|
|
|
2022-07-05 16:54:45 -04:00
|
|
|
using give_pickup_rewards = void(*)(int players, uint32_t hash);
|
2022-07-03 00:03:07 +02:00
|
|
|
|
2022-07-05 16:54:45 -04:00
|
|
|
// 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
|
2021-05-25 12:58:33 +02:00
|
|
|
// Received Event Signatures START
|
2022-07-05 16:54:45 -04:00
|
|
|
using send_event_ack = void(*)(rage::netEventMgr* event_manager, CNetGamePlayer* source_player, CNetGamePlayer* target_player, int event_index, int event_handled_bitset);
|
2021-05-25 12:58:33 +02:00
|
|
|
// Received Event Signatures END
|
2022-05-23 00:31:21 +02:00
|
|
|
|
|
|
|
//Sync signatures START
|
2022-07-05 16:54:45 -04:00
|
|
|
using get_sync_type_info = const char*(*)(uint16_t sync_type, char a2);
|
2022-05-23 00:31:21 +02:00
|
|
|
|
2022-11-10 19:21:38 -05:00
|
|
|
using get_sync_tree_for_type = rage::netSyncTree*(*)(CNetworkObjectMgr* mgr, uint16_t sync_type);
|
2022-05-23 00:31:21 +02:00
|
|
|
|
2022-11-10 19:21:38 -05:00
|
|
|
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);
|
2022-05-23 00:31:21 +02:00
|
|
|
//Sync signatures END
|
2022-09-12 18:44:47 +00:00
|
|
|
|
|
|
|
using reset_network_complaints = void(*)(CNetComplaintMgr* mgr);
|
2022-10-19 00:30:32 +02:00
|
|
|
|
|
|
|
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);
|
2022-10-26 14:12:29 +02:00
|
|
|
|
|
|
|
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);
|
2022-10-19 00:30:32 +02:00
|
|
|
}
|