2023-10-01 22:13:20 +08:00
|
|
|
#pragma once
|
2023-10-02 17:31:02 +08:00
|
|
|
#include "head.h"
|
2023-10-21 04:24:28 +08:00
|
|
|
enum class _ExtendPlayerSetting_Blood
|
|
|
|
|
{
|
|
|
|
|
kNone,
|
|
|
|
|
kDisableBloodWorldDecal,
|
|
|
|
|
kDisableBloodEffectDispatch,
|
|
|
|
|
kDisableBloodWorldDecalAndEffectDispatch,
|
|
|
|
|
kMax
|
|
|
|
|
};
|
|
|
|
|
enum class _ExtendPlayerSetting_Weapon
|
|
|
|
|
{
|
|
|
|
|
kNone,
|
|
|
|
|
kDisablebulletHole,
|
|
|
|
|
kMax
|
|
|
|
|
};
|
|
|
|
|
struct _ExtendPlayerSetting {
|
|
|
|
|
uint64_t playerSlot;
|
|
|
|
|
_ExtendPlayerSetting_Blood bloodSetting;
|
|
|
|
|
_ExtendPlayerSetting_Weapon weaponSetting;
|
|
|
|
|
};
|
2023-10-02 05:03:37 +08:00
|
|
|
namespace ExtendPlayerManager {
|
|
|
|
|
auto AddSteamIdToPlayerSteamIdWithNameTable(uint64_t SteamId,
|
|
|
|
|
uint64_t PlayerSlot) -> void;
|
|
|
|
|
auto GetPlayerSlotBySteamId(uint64_t SteamId) -> uint64_t;
|
|
|
|
|
auto SteamIDStringToUInt64(const std::string& steamID) -> uint64_t;
|
|
|
|
|
auto RemovePlayerSlotBySteamId(uint64_t SteamId) -> void;
|
2023-10-03 00:25:23 +08:00
|
|
|
auto GetPlayerByPlayerSlot(uint64_t playerSlot) -> CCSPlayerController*;
|
2023-10-21 04:24:28 +08:00
|
|
|
auto UpdatePlayerSettingBySteamId(uint64_t SteamId, _ExtendPlayerSetting setting) -> void;
|
|
|
|
|
auto GetPlayerSettingBySteamId(uint64_t SteamId)->std::pair<bool, _ExtendPlayerSetting>;
|
2023-10-02 05:03:37 +08:00
|
|
|
}; // namespace ExtendPlayerManager
|