2021-12-06 19:36:09 +01:00
|
|
|
#pragma once
|
2022-08-25 22:06:34 +02:00
|
|
|
#include "CPed.hpp"
|
2021-07-25 13:12:53 +02:00
|
|
|
|
2021-02-08 22:44:51 +01:00
|
|
|
class CPedFactory
|
|
|
|
{
|
|
|
|
public:
|
2023-02-02 22:55:50 +00:00
|
|
|
enum class PedCreateFlags
|
|
|
|
{
|
|
|
|
IS_NETWORKED = (1 << 0),
|
|
|
|
IS_PLAYER = (1 << 1)
|
|
|
|
};
|
|
|
|
|
|
|
|
virtual ~CPedFactory() = default;
|
|
|
|
virtual CPed* CreatePed(std::uint8_t* flags, std::uint16_t* model_index, rage::fmatrix44* matrix, bool default_component_variation, bool register_network_object, bool give_default_loadout, bool, bool) = 0; // 0x08
|
|
|
|
virtual CPed* CreateClone(std::uint8_t* flags, std::uint16_t* model_index, rage::fmatrix44* matrix, bool default_component_variation, bool, bool register_network_object, bool) = 0; // 0x10
|
|
|
|
virtual CPed* ClonePed(CPed* ped, bool register_network_object, bool link_blends, bool clone_compressed_damage) = 0; // 0x18
|
|
|
|
virtual CPed* ClonePedToTarget(CPed* source, CPed* target, bool clone_compressed_damage) = 0; // 0x20
|
|
|
|
virtual CPed* CreatePlayer(std::uint8_t* flags, std::uint16_t model_index, rage::fmatrix44* matrix, CPlayerInfo* player_info) = 0; // 0x28
|
|
|
|
virtual void DestroyPed(CPed* ped) = 0; // 0x30
|
|
|
|
|
2022-11-08 22:11:50 +01:00
|
|
|
class CPed* m_local_ped; //0x0008
|
2021-02-08 22:44:51 +01:00
|
|
|
}; //Size: 0x0010
|
2021-09-21 16:11:15 +02:00
|
|
|
static_assert(sizeof(CPedFactory) == 0x10);
|