VR-Engage  2.2
Loading...
Searching...
No Matches
message.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \file message.h
7//! \brief Defines Lua bindings for messaging functionality in VREngage
8//!
9//! This file contains the function for registering messaging functionality with Lua.
10//! It allows Lua scripts to create, send, and receive messages within the VREngage
11//! messaging system, enabling inter-component communication and event handling.
12
13#pragma once
14
16
17struct lua_State;
18
19namespace makVre
20{
21//! \brief Registers messaging functions with a Lua state
22//! \param L Pointer to the Lua state to register with
23//! \return Number of values pushed onto the Lua stack
24//!
25//! This function registers messaging functionality with the specified Lua state.
26//! It creates a Message table in Lua with functions for creating, sending, and
27//! receiving messages within the VREngage messaging system. This enables scripts
28//! to participate in the application's event-driven communication architecture.
30} // 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_Message(lua_State *L)
Registers messaging functions with a Lua state.