|
|
|
@ -17,7 +17,8 @@
|
|
|
|
|
* You should have received a copy of the GNU General Public License |
|
|
|
|
* along with Acedia. If not, see <https://www.gnu.org/licenses/>. |
|
|
|
|
*/ |
|
|
|
|
class EPlayer extends EInterface; |
|
|
|
|
class EPlayer extends EInterface |
|
|
|
|
dependsOn(ChatApi); |
|
|
|
|
|
|
|
|
|
// How this `EPlayer` is identified by the server |
|
|
|
|
var private User identity; |
|
|
|
@ -504,6 +505,19 @@ public final function /* borrow */ ConsoleWriter BorrowConsole()
|
|
|
|
|
return consoleInstance.ForPlayer(self); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// Sends specified voice message from the caller player to all players in the game. |
|
|
|
|
public final function SendVoiceMessage(ChatApi.BuiltInVoiceMessage voiceMessage) { |
|
|
|
|
local PlayerController controller; |
|
|
|
|
local ChatApi.NativeVoiceMessage nativeMessage; |
|
|
|
|
|
|
|
|
|
if (voiceMessage == BIVM_Unknown) return; |
|
|
|
|
controller = GetController(); |
|
|
|
|
if (controller == none) return; |
|
|
|
|
nativeMessage = _.chat._enumIntoNativeVoiceMessage(voiceMessage); |
|
|
|
|
|
|
|
|
|
controller.ServerSpeech(nativeMessage.type, nativeMessage.index, ""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// Sends a text message to notify the player about a particular event or situation, displayed |
|
|
|
|
/// as a notification. |
|
|
|
|
/// |
|
|
|
|