Class Cassie
A set of tools to use in-game C.A.S.S.I.E.
Inheritance
Inherited Members
Namespace: Exiled.API.Features
Assembly: Exiled.API.dll
Syntax
public static class Cassie
Properties
| Improve this Doc View SourceAnnouncer
Gets the NineTailedFoxAnnouncer singleton.
Declaration
public static NineTailedFoxAnnouncer Announcer { get; }
Property Value
Type | Description |
---|---|
NineTailedFoxAnnouncer |
IsSpeaking
Gets a value indicating whether or not C.A.S.S.I.E is currently announcing. Does not include decontamination or Alpha Warhead Messages.
Declaration
public static bool IsSpeaking { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
VoiceLines
Gets a System.Collections.Generic.IReadOnlyCollection<T> of NineTailedFoxAnnouncer.VoiceLine objects that C.A.S.S.I.E recognizes.
Declaration
public static IReadOnlyCollection<NineTailedFoxAnnouncer.VoiceLine> VoiceLines { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<NineTailedFoxAnnouncer.VoiceLine> |
Methods
| Improve this Doc View SourceCalculateDuration(String, Boolean, Single)
Calculates the duration of a C.A.S.S.I.E message.
Declaration
public static float CalculateDuration(string message, bool rawNumber = false, float speed = 1F)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message, which duration will be calculated. |
System.Boolean | rawNumber | Determines if a number won't be converted to its full pronunciation. |
System.Single | speed | The speed of the message. |
Returns
Type | Description |
---|---|
System.Single | Duration (in seconds) of specified message. |
Clear()
Clears the C.A.S.S.I.E queue.
Declaration
public static void Clear()
ConvertNumber(Int32)
Converts a number into a Cassie-Readable String.
Declaration
public static string ConvertNumber(int num)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | num | Number to convert. |
Returns
Type | Description |
---|---|
System.String | A CASSIE-readable System.String representing the number. |
ConvertTeam(Team, String)
Converts a PlayerRoles.Team into a Cassie-Readable CONTAINMENTUNIT
.
Declaration
public static string ConvertTeam(Team team, string unitName)
Parameters
Type | Name | Description |
---|---|---|
PlayerRoles.Team | team | PlayerRoles.Team. |
System.String | unitName | Unit Name. |
Returns
Type | Description |
---|---|
System.String | System.String Containment Unit text. |
CustomScpTermination(String, DamageHandlerBase)
Announces the termination of a custom SCP name.
Declaration
public static void CustomScpTermination(string scpName, DamageHandlerBase info)
Parameters
Type | Name | Description |
---|---|---|
System.String | scpName | SCP Name. Note that for larger numbers, C.A.S.S.I.E will pronounce the place (eg. "457" -> "four hundred fifty seven"). Spaces can be used to prevent this behavior. |
DamageHandlerBase | info | Hit Information. |
DelayedGlitchyMessage(String, Single, Single, Single)
Reproduce a glitchy C.A.S.S.I.E announcement after a certain period of seconds.
Declaration
public static void DelayedGlitchyMessage(string message, float delay, float glitchChance, float jamChance)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to be reproduced. |
System.Single | delay | The seconds that have to pass before reproducing the message. |
System.Single | glitchChance | The chance of placing a glitch between each word. |
System.Single | jamChance | The chance of jamming each word. |
DelayedMessage(String, Single, Boolean, Boolean, Boolean)
Reproduce a non-glitched C.A.S.S.I.E message after a certain amount of seconds.
Declaration
public static void DelayedMessage(string message, float delay, bool isHeld = false, bool isNoisy = true, bool isSubtitles = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to be reproduced. |
System.Single | delay | The seconds that have to pass before reproducing the message. |
System.Boolean | isHeld | Indicates whether C.A.S.S.I.E has to hold the message. |
System.Boolean | isNoisy | Indicates whether C.A.S.S.I.E has to make noises or not during the message. |
System.Boolean | isSubtitles | Indicates whether C.A.S.S.I.E has to make subtitles. |
GlitchyMessage(String, Single, Single)
Reproduce a glitchy C.A.S.S.I.E announcement.
Declaration
public static void GlitchyMessage(string message, float glitchChance, float jamChance)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to be reproduced. |
System.Single | glitchChance | The chance of placing a glitch between each word. |
System.Single | jamChance | The chance of jamming each word. |
IsValid(String)
Gets a value indicating whether or not the given word is a valid C.A.S.S.I.E word.
Declaration
public static bool IsValid(string word)
Parameters
Type | Name | Description |
---|---|---|
System.String | word | The word to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the word is valid; otherwise, false. |
IsValidSentence(String)
Gets a value indicating whether or not the given sentence is all valid C.A.S.S.I.E word.
Declaration
public static bool IsValidSentence(string sentence)
Parameters
Type | Name | Description |
---|---|---|
System.String | sentence | The sentence to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the sentence is valid; otherwise, false. |
Message(String, Boolean, Boolean, Boolean)
Reproduce a non-glitched C.A.S.S.I.E message.
Declaration
public static void Message(string message, bool isHeld = false, bool isNoisy = true, bool isSubtitles = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to be reproduced. |
System.Boolean | isHeld | Indicates whether C.A.S.S.I.E has to hold the message. |
System.Boolean | isNoisy | Indicates whether C.A.S.S.I.E has to make noises or not during the message. |
System.Boolean | isSubtitles | Indicates whether C.A.S.S.I.E has to make subtitles. |
MessageTranslated(String, String, Boolean, Boolean, Boolean)
Reproduce a non-glitched C.A.S.S.I.E message with a possibility to custom the subtitles.
Declaration
public static void MessageTranslated(string message, string translation, bool isHeld = false, bool isNoisy = true, bool isSubtitles = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message to be reproduced. |
System.String | translation | The translation should be show in the subtitles. |
System.Boolean | isHeld | Indicates whether C.A.S.S.I.E has to hold the message. |
System.Boolean | isNoisy | Indicates whether C.A.S.S.I.E has to make noises or not during the message. |
System.Boolean | isSubtitles | Indicates whether C.A.S.S.I.E has to make subtitles. |
ScpTermination(Player, DamageHandlerBase)
Announce a SCP Termination.
Declaration
public static void ScpTermination(Player scp, DamageHandlerBase info)
Parameters
Type | Name | Description |
---|---|---|
Player | scp | SCP to announce termination of. |
PlayerStatsSystem.DamageHandlerBase | info | HitInformation. |