VR-Engage  2.2
Loading...
Searching...
No Matches
vreMessageManager.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \file vreMessageManager.h
7//! \brief Defines Lua bindings for the VREngage message manager
8//!
9//! This file contains the function for registering the VREngage message manager
10//! functionality with Lua. It allows Lua scripts to access the central messaging
11//! system of the VREngage application, enabling scripts to send, receive, and
12//! process application-wide messages for event handling and component communication.
13
14#pragma once
15
17
18struct lua_State;
19
20namespace makVre
21{
22//! \brief Registers VREngage message manager functions with a Lua state
23//! \param L Pointer to the Lua state to register with
24//! \return Number of values pushed onto the Lua stack
25//!
26//! This function registers the VREngage message manager functionality with the
27//! specified Lua state. It creates a VreMessageManager table in Lua with functions
28//! for accessing the central messaging system of the VREngage application. This
29//! allows scripts to send messages to other components, register handlers for
30//! receiving messages, and participate in the application's event-driven
31//! communication architecture.
33} // namespace makVre
Defines export macros for the vreLuaBindings library.
#define VRELUABINDING_DLL
Export/import macro for non-Windows platforms.
Definition export.h:37
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
int VRELUABINDING_DLL luaopen_VreMessageManager(lua_State *L)
Registers VREngage message manager functions with a Lua state.