mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:40:53 +01:00
38 lines
757 B
C
38 lines
757 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <Structs/GameId.h>
|
||
|
|
#include <DateTime.h>
|
||
|
|
|
||
|
|
struct Player;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Dispatched when a player joins the server.
|
||
|
|
*/
|
||
|
|
struct PlayerJoinEvent
|
||
|
|
{
|
||
|
|
PlayerJoinEvent(Player* apPlayer)
|
||
|
|
: pPlayer{apPlayer}
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
PlayerJoinEvent(Player* apPlayer, GameId aWorldSpaceId, GameId aCellId)
|
||
|
|
: pPlayer(apPlayer)
|
||
|
|
, WorldSpaceId(aWorldSpaceId)
|
||
|
|
, CellId(aCellId)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
PlayerJoinEvent(Player* apPlayer, GameId aWorldSpaceId, GameId aCellId, DateTime aDateTime)
|
||
|
|
: pPlayer(apPlayer)
|
||
|
|
, WorldSpaceId(aWorldSpaceId)
|
||
|
|
, CellId(aCellId)
|
||
|
|
, PlayerTime(aDateTime)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
Player* pPlayer;
|
||
|
|
GameId WorldSpaceId{};
|
||
|
|
GameId CellId{};
|
||
|
|
DateTime PlayerTime;
|
||
|
|
};
|