F4MP/tiltedcode/Code/server/Events/CharacterExteriorCellChangeEvent.h
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

24 lines
602 B
C

#pragma once
#include <Structs/GameId.h>
#include <Structs/GridCellCoords.h>
struct Player;
/**
* @brief Dispatched when a player enters a new exterior cell.
*/
struct CharacterExteriorCellChangeEvent
{
CharacterExteriorCellChangeEvent(Player* apOwner, const entt::entity aEntity, const GameId aWorldSpaceId, const GridCellCoords aCurrentCoords)
: Owner(apOwner)
, Entity{aEntity}
, WorldSpaceId(aWorldSpaceId)
, CurrentCoords(aCurrentCoords)
{
}
Player* Owner;
entt::entity Entity;
GameId WorldSpaceId;
GridCellCoords CurrentCoords;
};