1 #ifndef CORE_SCRIPTS_MAPEVENTCONTEXT_HPP
2 #define CORE_SCRIPTS_MAPEVENTCONTEXT_HPP
4 #include <BLIB/ECS.hpp>
5 #include <BLIB/Scripts.hpp>
6 #include <BLIB/Tilemap/Position.hpp>
35 const bl::tmap::Position& tile);
38 virtual void addCustomSymbols(bl::script::SymbolTable& table)
const override;
42 const bl::ecs::Entity entity;
44 const bl::tmap::Position tile;
Core classes and functionality for both the editor and game.
Represents an event in a Map. A script that is run on a trigger within a given region.
Special script context for map events. Adds default built-ins and the map event built-ins.
MapEventContext(system::Systems &systems, bl::ecs::Entity entity, const map::Event &event, const bl::tmap::Position &tile)
Construct a new MapEventContext.
virtual void addCustomSymbols(bl::script::SymbolTable &table) const override
Owns all primary systems and a reference to the engine.