From 385215688e893a78d02dca6cad8ed14f0d9a5974 Mon Sep 17 00:00:00 2001 From: Rolln Date: Mon, 22 Jul 2024 12:52:05 -0600 Subject: [PATCH] Creeated VoiceChat class and function --- library/mission/voiceChat.lua | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 library/mission/voiceChat.lua diff --git a/library/mission/voiceChat.lua b/library/mission/voiceChat.lua new file mode 100644 index 0000000..8a5ff01 --- /dev/null +++ b/library/mission/voiceChat.lua @@ -0,0 +1,32 @@ +---@meta + +---The voice chat singleton is a means of creating customized voice chat rooms for players to interact with each other in multiplayer. +---@class VoiceChat +VoiceChat ={} + +---@enum VoiceChat.Side +VoiceChat.Side = { + NEUTRAL = 0, + RED = 1, + BLUE = 2, + ALL = 3, + } + + ---@enum VoiceChat.RoomType + VoiceChat.RoomType= { + PERSISTENT = 0, + MULTICREW = 1, + MANAGEABLE = 2, + } + + ---Creates a VoiceChat room for players to join and interact with each other in a multiplayer mission. + ---___ + ---Example: + ---```lua + --- VoiceChat.CreateRoom("SRSIsBetter", 2, 0) + ---``` + ---___ + ---@param roomName string Name of roomto create. + ---@param side VoiceChat.Side Who to create the room for. + ---@param roomType VoiceChat.RoomType Type of room to create. + function VoiceChat.createRoom(roomName, side, roomType) end \ No newline at end of file