Loading...
Searching...
No Matches
AdventureCore.CharacterMessenger Class Reference

Detailed Description

receives and sends messages to a character, effectively acting as a proxy
looks for the character in its parents unless specified
useful for catching messages on objects that are instantiated on characters
for example to play equipment specific sounds when some animation is performed
(different sword slash sounds on a wooden vs metal sword or footsteps with heavy armor)

https://adventure.softleitner.com/manual/character

Inheritance diagram for AdventureCore.CharacterMessenger:

Public Member Functions

virtual void SendCharacterMessages (string e)
 
virtual void SendCharacterMessage (string e)
 
virtual void OnMessages (string e)
 use when a single string has to be split into several messages
by default the parameter is split by spaces
 
virtual void OnMessage (string e)
 puts a message into the characters messaging pipeline
 

Public Attributes

CharacterBase Character
 
UnityEvent< string > MessageReceived
 
MessageEvent[] MessageEvents
 

Member Function Documentation

◆ OnMessage()

virtual void AdventureCore.CharacterMessenger.OnMessage ( string e)
inlinevirtual

puts a message into the characters messaging pipeline

Parameters
e

◆ OnMessages()

virtual void AdventureCore.CharacterMessenger.OnMessages ( string e)
inlinevirtual

use when a single string has to be split into several messages
by default the parameter is split by spaces

Parameters
e