Class ChatHistory
- Namespace
- BSGameLib.Chat
- Assembly
- BSGameLib.Chat.dll
The lines a player has sent, for stepping back through with Up and forward with Down. What they had typed before stepping back is kept, and comes back when they step past the newest.
public sealed class ChatHistory
- Inheritance
-
ChatHistory
- Inherited Members
Constructors
ChatHistory(int)
Creates a history that keeps up to most lines. A value below 1 keeps one.
public ChatHistory(int most = 100)
Parameters
mostint
Properties
Count
How many lines it holds.
public int Count { get; }
Property Value
Methods
Add(string)
Keeps a line sent, newest last; the same line twice in a row is kept once.
public void Add(string line)
Parameters
linestring
Back(string)
The line before the one shown, keeping typed when leaving what was being typed; it stays at the oldest.
public string Back(string typed)
Parameters
typedstring
Returns
Forward(string)
The line after the one shown; past the newest, what was being typed.
public string Forward(string typed)
Parameters
typedstring
Returns
Reset()
Stops stepping through, as typing does: the next step back starts at the newest again.
public void Reset()