Attempt to find an event set and execute a particular event from it. @function HandleEvent @tparam string name Name of the event set to find. @tparam Logic.EventType type Event to execute. @tparam[opt=Lara] Objects.Moveable activator Optional activator. @usage -- Executes the "ENTER" volume event of the event set named "MyVolumeEvent" TEN.Logic.HandleEvent("MyVolumeEvent", TEN.Logic.EventType.E
| 261 | TEN.Logic.HandleEvent("MyGlobalEvent", TEN.Logic.EventType.LOAD, enemy) |
| 262 | */ |
| 263 | void LogicHandler::HandleEvent(const std::string& name, EventType type, sol::optional<Moveable&> activator) |
| 264 | { |
| 265 | TEN::Control::Volumes::HandleEvent(name, type, activator.has_value() ? (Activator)(short)activator->GetIndex() : (Activator)(short)LaraItem->Index); |
| 266 | } |
| 267 | |
| 268 | /*** Attempt to find an event set and enable specified event in it. |
| 269 |
nothing calls this directly
no test coverage detected