Search Results for

    Show / Hide Table of Contents

    Class ChatManager

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    Mirror.NetworkBehaviour
    DewNetworkBehaviour
    NetworkedManagerBase<ChatManager>
    ChatManager
    Implements
    ILogicUpdate
    Inherited Members
    NetworkedManagerBase<ChatManager>.instance
    NetworkedManagerBase<ChatManager>.softInstance
    NetworkedManagerBase<ChatManager>.Awake()
    NetworkedManagerBase<ChatManager>.OnEnable()
    NetworkedManagerBase<ChatManager>.OnStartClient()
    NetworkedManagerBase<ChatManager>.OnStopClient()
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNewNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNetworked(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxStopNetworked(GameObject)
    DewNetworkBehaviour.FxPlayNew(GameObject)
    DewNetworkBehaviour.FxPlayNew(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlayNew(GameObject, Entity)
    DewNetworkBehaviour.FxPlayNew(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlay(GameObject)
    DewNetworkBehaviour.FxPlay(GameObject, Vector3, Quaternion?)
    DewNetworkBehaviour.FxPlay(GameObject, Entity)
    DewNetworkBehaviour.FxPlay(GameObject, Entity, Vector3, Quaternion?)
    DewNetworkBehaviour.FxStop(GameObject)
    DewNetworkBehaviour.FxApplySpeedMultiplier(GameObject, float)
    DewNetworkBehaviour.FxApplySpeedMultiplierNetworked(GameObject, float)
    DewNetworkBehaviour.InvalidateInstance()
    DewNetworkBehaviour.OnStopServer()
    DewNetworkBehaviour.OnStart()
    DewNetworkBehaviour.OnLateStart()
    DewNetworkBehaviour.OnLateStartServer()
    DewNetworkBehaviour.OnStop()
    DewNetworkBehaviour.OnDestroy()
    DewNetworkBehaviour.FrameUpdate()
    DewNetworkBehaviour.GetComponent<T>(out T)
    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    public class ChatManager : NetworkedManagerBase<ChatManager>, ILogicUpdate

    Fields

    ChatContentColorHex

    Declaration
    public const string ChatContentColorHex = "#e4edf0"
    Field Value
    Type Description
    string

    ChatMessage_MaxLength

    Declaration
    public const int ChatMessage_MaxLength = 100
    Field Value
    Type Description
    int

    ChatMessage_RateLimitCount

    Declaration
    public const int ChatMessage_RateLimitCount = 8
    Field Value
    Type Description
    int

    ChatMessage_RateLimitLockTime

    Declaration
    public const float ChatMessage_RateLimitLockTime = 8
    Field Value
    Type Description
    float

    ChatMessage_RateLimitTimeframe

    Declaration
    public const float ChatMessage_RateLimitTimeframe = 12
    Field Value
    Type Description
    float

    ClientEvent_OnEmoteReceived

    Declaration
    public SafeAction<DewPlayer, string> ClientEvent_OnEmoteReceived
    Field Value
    Type Description
    SafeAction<DewPlayer, string>

    ClientEvent_OnMessageReceived

    Declaration
    public SafeAction<ChatManager.Message> ClientEvent_OnMessageReceived
    Field Value
    Type Description
    SafeAction<ChatManager.Message>

    Emote_CooldownTime

    Declaration
    public const float Emote_CooldownTime = 1.4
    Field Value
    Type Description
    float

    Methods

    BroadcastAdvText(string)

    Declaration
    public void BroadcastAdvText(string advText)
    Parameters
    Type Name Description
    string advText

    BroadcastMessage(Message)

    Declaration
    public void BroadcastMessage(ChatManager.Message message)
    Parameters
    Type Name Description
    ChatManager.Message message

    CmdSendAchievementMessage(string, NetworkConnectionToClient)

    Declaration
    public void CmdSendAchievementMessage(string achKey, NetworkConnectionToClient sender = null)
    Parameters
    Type Name Description
    string achKey
    Mirror.NetworkConnectionToClient sender

    CmdSendChatMessage(string, NetworkConnectionToClient)

    Declaration
    public void CmdSendChatMessage(string content, NetworkConnectionToClient sender = null)
    Parameters
    Type Name Description
    string content
    Mirror.NetworkConnectionToClient sender

    CmdSendEmote(string, NetworkConnectionToClient)

    Declaration
    public void CmdSendEmote(string emoteName, NetworkConnectionToClient sender = null)
    Parameters
    Type Name Description
    string emoteName
    Mirror.NetworkConnectionToClient sender

    CmdSendPingMessage(string, NetworkConnectionToClient)

    Declaration
    public void CmdSendPingMessage(string advMessage, NetworkConnectionToClient sender = null)
    Parameters
    Type Name Description
    string advMessage
    Mirror.NetworkConnectionToClient sender

    GetColoredDescribedPlayerName(DewPlayer)

    Declaration
    public static string GetColoredDescribedPlayerName(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player
    Returns
    Type Description
    string

    GetColoredGemName(string, int)

    Declaration
    public static string GetColoredGemName(string typeName, int quality)
    Parameters
    Type Name Description
    string typeName
    int quality
    Returns
    Type Description
    string

    GetColoredSkillName(string, int)

    Declaration
    public static string GetColoredSkillName(string typeName, int level)
    Parameters
    Type Name Description
    string typeName
    int level
    Returns
    Type Description
    string

    GetDescribedPlayerName(DewPlayer)

    Declaration
    public static string GetDescribedPlayerName(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player
    Returns
    Type Description
    string

    GetFormattedChatContent(string, string)

    Declaration
    public static string GetFormattedChatContent(string playerName, string content)
    Parameters
    Type Name Description
    string playerName
    string content
    Returns
    Type Description
    string

    GetPlayerColorHex(DewPlayer)

    Declaration
    public static string GetPlayerColorHex(DewPlayer player = null)
    Parameters
    Type Name Description
    DewPlayer player
    Returns
    Type Description
    string

    IncrementRateAndCheck(NetworkConnectionToClient)

    Increment chat rate of given player. Returns true if succeeds.
    Returns false if the player have exceeded the rate limit.

    Declaration
    public bool IncrementRateAndCheck(NetworkConnectionToClient connection)
    Parameters
    Type Name Description
    Mirror.NetworkConnectionToClient connection
    Returns
    Type Description
    bool

    IsChatLocked(NetworkConnectionToClient)

    Is chat disabled for given player? Chat will be disabled temporarily if a player sends chat messages too fast.

    Declaration
    public bool IsChatLocked(NetworkConnectionToClient connection)
    Parameters
    Type Name Description
    Mirror.NetworkConnectionToClient connection
    Returns
    Type Description
    bool

    IsPlayerMuted(DewPlayer)

    Declaration
    public bool IsPlayerMuted(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player
    Returns
    Type Description
    bool

    IsPlayerMutedByNetId(uint)

    Declaration
    public bool IsPlayerMutedByNetId(uint playerNetId)
    Parameters
    Type Name Description
    uint playerNetId
    Returns
    Type Description
    bool

    IsPlayerMutedBySteamId(ulong)

    Declaration
    public bool IsPlayerMutedBySteamId(ulong playerSteamId)
    Parameters
    Type Name Description
    ulong playerSteamId
    Returns
    Type Description
    bool

    LogicUpdate(float)

    Declaration
    public override void LogicUpdate(float dt)
    Parameters
    Type Name Description
    float dt
    Overrides
    DewNetworkBehaviour.LogicUpdate(float)

    MutePlayer(DewPlayer)

    Declaration
    public void MutePlayer(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player

    OnStartServer()

    Declaration
    public override void OnStartServer()
    Overrides
    DewNetworkBehaviour.OnStartServer()

    RpcShowEmote(string, DewPlayer)

    Declaration
    public void RpcShowEmote(string emoteName, DewPlayer sender)
    Parameters
    Type Name Description
    string emoteName
    DewPlayer sender

    SendChatLockedNotice(NetworkConnectionToClient)

    Declaration
    public void SendChatLockedNotice(NetworkConnectionToClient target)
    Parameters
    Type Name Description
    Mirror.NetworkConnectionToClient target

    SendChatMessage(NetworkConnection, Message)

    Declaration
    public void SendChatMessage(NetworkConnection target, ChatManager.Message message)
    Parameters
    Type Name Description
    Mirror.NetworkConnection target
    ChatManager.Message message

    ShowMessageLocally(Message)

    Declaration
    public void ShowMessageLocally(ChatManager.Message message)
    Parameters
    Type Name Description
    ChatManager.Message message

    UnmutePlayer(DewPlayer)

    Declaration
    public void UnmutePlayer(DewPlayer player)
    Parameters
    Type Name Description
    DewPlayer player

    Implements

    ILogicUpdate

    Extension Methods

    DewGUI.SetExpandHeight<T>(T, bool)
    DewGUI.SetExpandHeight<T>(T, float)
    DewGUI.SetExpandWidth<T>(T, bool)
    DewGUI.SetExpandWidth<T>(T, float)
    DewGUI.SetHeight<T>(T, float)
    DewGUI.SetText<T>(T, string)
    DewGUI.SetTextLocalized<T>(T, string)
    DewGUI.SetWidth<T>(T, float)
    In This Article
    Back to top Shape of Dreams API Documentation