|
| | OrderChatMessage (Order order, Character targetCharacter, Character sender, bool isNewOrder=true) |
| | Same as calling OrderChatMessage.OrderChatMessage(Order, string, int, string, ISpatialEntity, Character, Character), but the text parameter is set using Order.GetChatMessage(string, string, bool, string)
|
| |
| | OrderChatMessage (Order order, string text, Character targetCharacter, Entity sender, bool isNewOrder=true) |
| |
| override void | ServerWrite (in SegmentTableWriter< ServerNetSegment > segmentTable, IWriteMessage msg, Client c) |
| |
| string | ApplyDistanceEffect (Character listener) |
| |
| int | EstimateLengthBytesClient () |
| |
| int | EstimateLengthBytesServer (Client c) |
| |
|
| static string | NameFromEntityOrNull (Entity entity) |
| |
| static void | WriteOrder (IWriteMessage msg, Order order, Entity targetCharacter, bool isNewOrder) |
| |
| static OrderMessageInfo | ReadOrder (IReadMessage msg) |
| |
| static string | GetTimeStamp () |
| |
| static ChatMessage | Create (string senderName, string text, ChatMessageType type, Entity sender, Client client=null, PlayerConnectionChangeType changeType=PlayerConnectionChangeType.None, Color? textColor=null) |
| |
| static string | GetChatMessageCommand (string message, out string messageWithoutCommand) |
| |
| static float | GetGarbleAmount (Entity listener, Entity sender, float range, float obstructionMultiplier=2.0f) |
| | How much messages sent by sender should get garbled. Takes the distance between the entities and optionally the obstructions between them into account (see obstructionMultiplier ).
|
| |
| static string | ApplyDistanceEffect (Entity listener, Entity sender, string text, float range, float obstructionMultiplier=2.0f) |
| |
| static string | ApplyDistanceEffect (string text, float garbleAmount) |
| |
| static string | ApplyDistanceEffect (string message, ChatMessageType type, Character sender, Character receiver) |
| |
| static bool | CanUseRadio (Character sender, bool ignoreJamming=false) |
| |
| static bool | CanUseRadio (Character sender, out WifiComponent radio, bool ignoreJamming=false) |
| |
| static void | ServerRead (IReadMessage msg, Client c) |
| |
| static void | HandleSpamFilter (Client c, string messageText, out bool flaggedAsSpam, float similarityMultiplier=1.0f) |
| | Increase the client's chat spam speed and check whether the spam filter should kick in.
|
| |
| Barotrauma.Networking.OrderChatMessage.OrderChatMessage |
( |
Order | order, |
|
|
Character | targetCharacter, |
|
|
Character | sender, |
|
|
bool | isNewOrder = true ) |
Same as calling OrderChatMessage.OrderChatMessage(Order, string, int, string, ISpatialEntity, Character, Character), but the text parameter is set using Order.GetChatMessage(string, string, bool, string)