Candide.Terminal.GameTerminal
Type JSONpublic class in Candide.Terminal
Type metadata
- Assembly
Romestead - Namespace
Candide.Terminal - Base type
System.Object - Hash
E28CA1FC4E4060F37A0D4B0CBE94CA10AB6474FF22E8CA5A84C7ED52BDEE0E1F
Relationships
Base type
System.Object
Referenced by types
Fields
| Name | Visibility | Signature |
|---|---|---|
Active# | public | public System.Boolean Active |
Commands# | public | public System.Collections.Generic.Dictionary<System.String, Candide.Terminal.TerminalCommand> Commands |
_currentInput# | private | private System.String _currentInput |
_cursor# | private | private System.Int32 _cursor |
_game# | private | private Candide.CandideEngine _game |
_history# | private | private System.Collections.Generic.Stack<GameTerminal.TerminalLine> _history |
_inputHistory# | private | private System.Collections.Generic.List<System.String> _inputHistory |
_inputIndex# | private | private System.Int32 _inputIndex |
_inputLine# | private | private System.Text.StringBuilder _inputLine |
_luaState# | private | private NLua.Lua _luaState |
_options# | private | private Candide.Terminal.GameTerminalOptions _options |
_pixel# | private | private Microsoft.Xna.Framework.Graphics.Texture2D _pixel |
_spriteBatch# | private | private Microsoft.Xna.Framework.Graphics.SpriteBatch _spriteBatch |
_suggestion# | private | private System.Text.StringBuilder _suggestion |
_suggestionIndex# | private | private System.Int32 _suggestionIndex |
Methods
Activate
#
public System.Void Activate()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
4526F6A8D3C2301D957C75428D012652789AE64075292CC110ED35E70A537B81 - Body hash
E3287D1C4B759F2511AD87CB939EC6224F62239067D76DBDC0C5EDDF878F5E15 - IL size8
AddCommand
#
public System.Void AddCommand(System.String key, GameTerminal.TerminalCommandAction command)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
508F87FA4E1ADBD0731FA0D1A1D5E2702CB7C4872DF04ED6BB5CB544102F8ABC - Body hash
A0E2D3B9B3C368CC541950DB0E983EA23D42CB5A511338BDBE928005341A7331 - IL size19
Referenced calls
Candide.Terminal.TerminalCommand::.ctor(GameTerminal.TerminalCommandAction)System.Collections.Generic.Dictionary<System.String, Candide.Terminal.TerminalCommand>::Add(!0, !1)
AddCommand
#
public System.Void AddCommand(System.String key, GameTerminal.TerminalCommandAction command, GameTerminal.TerminalCommandSuggestion suggestion)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
26BD5A9D748806148C7A4864CC4D471C10F6EAF134BC43585DFF47DE3247F7EA - Body hash
7067354AA5659280AD192BDAF7F4E1275E594A0401E78B4804D2F93EE227D52F - IL size20
Referenced calls
Candide.Terminal.TerminalCommand::.ctor(GameTerminal.TerminalCommandAction, GameTerminal.TerminalCommandSuggestion)System.Collections.Generic.Dictionary<System.String, Candide.Terminal.TerminalCommand>::Add(!0, !1)
AddCommand
#
public System.Void AddCommand(System.String key, GameTerminal.TerminalCommandAction command, GameTerminal.TerminalCommandSuggestion2 suggestion)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
E60E356F76DE158E9BDCEA379B2638F0A5B8FBF2946342B88206D230F0D43F8C - Body hash
CA4D81CA61281A9A418B639E4BC74DBA97460F4E6F4CF5761A1DCF8AC86B146B - IL size20
Referenced calls
Candide.Terminal.TerminalCommand::.ctor(GameTerminal.TerminalCommandAction, GameTerminal.TerminalCommandSuggestion2)System.Collections.Generic.Dictionary<System.String, Candide.Terminal.TerminalCommand>::Add(!0, !1)
AddLine
#
public System.Void AddLine(System.String text)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
14960004840FDA8170CC0D6522EC77BEB597665D1B894A9E73C60CDDF1E0D4AB - Body hash
092BB1D91014914E16D04ADC857322E9F736436C8811409436A51450F557B220 - IL size91
Referenced calls
System.String::Split(System.Char, System.StringSplitOptions)Candide.Scene.GameScene::get_GraphicsDevice()Microsoft.Xna.Framework.Graphics.GraphicsDevice::get_Viewport()Microsoft.Xna.Framework.Graphics.Viewport::get_Width()Candide.Terminal.GameTerminal::WrapText(FontStashSharp.StaticSpriteFont, System.String, System.Single)GameTerminal.TerminalLine::.ctor(System.String, System.Int32)System.Collections.Generic.Stack<GameTerminal.TerminalLine>::Push(!0)
CharPressed
#
public System.Void CharPressed(System.Char c, Microsoft.Xna.Framework.Input.KeyboardState ks)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
F45FD491C5572643F75E93DC9E8F90096F4DEF8D127CF24455141180A5260944 - Body hash
797590ED12C995D18467579A954A309A278F5F582C5C8AC5C8C2645D128A89A8 - IL size89
Referenced calls
Microsoft.Xna.Framework.Input.KeyboardState::IsKeyDown(Microsoft.Xna.Framework.Input.Keys)FontStashSharp.StaticSpriteFont::get_Glyphs()FontStashSharp.Int32Map<FontStashSharp.FontGlyph>::ContainsKey(System.Int32)System.Text.StringBuilder::Insert(System.Int32, System.Char)
Deactivate
#
public System.Void Deactivate()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
5AADBBD27EB2AFE66BB9A60816966C08229E8F71CB5AD8620BF5B890DE142D45 - Body hash
1205029ED5F824E2F6892F2F76193B5743A57056381A4D19641E4ACD27590051 - IL size8
Dispose
#
public System.Void Dispose()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
2409D1FA65D0FC21F763C0FDDFDAB188DDC66DCE10D79E255051B178A470D4C3 - Body hash
C9F65874E9511F0F7175779296354DA8983C1B6F5500FE697256B0D79241B56D - IL size28
Referenced calls
NLua.Lua::Dispose()Candide.Terminal.KeyboardInput::Dispose()System.Collections.Generic.Stack<GameTerminal.TerminalLine>::Clear()
Called by
DoCommand
#
public System.String DoCommand(System.String input)
Method metadata
- Visibilitypublic
- Return type
System.String - StaticFalse
- VirtualFalse
- Hash
ADFE7925CC45D185BD2F1B39BA51CEF8D60E8F40BA2BC336833CB2BCA4A489F8 - Body hash
C504416132D547F72CA6A78F513E1ECF9B57F092EC742AB5805C3CA588E9689E - IL size93
Referenced calls
System.String::Split(System.Char, System.StringSplitOptions)System.Collections.Generic.Dictionary<System.String, Candide.Terminal.TerminalCommand>::TryGetValue(!0, !1&)GameTerminal.TerminalCommandAction::Invoke(System.String[])System.Object::ToString()Candide.Terminal.GameTerminal::AddLine(System.String)
String literals
Command not found.
DoLua
#
public System.String DoLua(System.String stuff)
Method metadata
- Visibilitypublic
- Return type
System.String - StaticFalse
- VirtualFalse
- Hash
DB268ABE2CDEA314039E23011801AF8F0C05FF8F4CBF01F7E897985D057B4F53 - Body hash
4312F52A57CFEE34089AE95B0214798BC18340C23CF7AD3A9AD82E56959A8EA3 - IL size39
Referenced calls
NLua.Lua::DoString(System.String, System.String)System.Object::ToString()
String literals
chunk
Draw
#
public System.Void Draw()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
B66C7AF43947C696CA0C15FBA999900BDF29D4A6AD0E2D78DDFDD0A8818071E9 - Body hash
67DB304BB3AA964763438255FA1925EF89DFA333075EB3D0F0FDD18C5D9C3A70 - IL size688
Referenced calls
FontStashSharp.SpriteFontBase::get_LineHeight()FontStashSharp.SpriteFontBase::MeasureString(System.String, System.Nullable<Microsoft.Xna.Framework.Vector2>, System.Single, System.Single, FontStashSharp.FontSystemEffect, System.Int32)Microsoft.Xna.Framework.Vector2::.ctor(System.Single, System.Single)Microsoft.Xna.Framework.Graphics.SpriteBatch::Begin(Microsoft.Xna.Framework.Graphics.SpriteSortMode, Microsoft.Xna.Framework.Graphics.BlendState, Microsoft.Xna.Framework.Graphics.SamplerState, Microsoft.Xna.Framework.Graphics.DepthStencilState, Microsoft.Xna.Framework.Graphics.RasterizerState, Microsoft.Xna.Framework.Graphics.Effect, System.Nullable<Microsoft.Xna.Framework.Matrix>)Candide.Scene.GameScene::get_GraphicsDevice()Microsoft.Xna.Framework.Graphics.GraphicsDevice::get_Viewport()Microsoft.Xna.Framework.Graphics.Viewport::get_Width()Microsoft.Xna.Framework.Rectangle::.ctor(System.Int32, System.Int32, System.Int32, System.Int32)Microsoft.Xna.Framework.Graphics.SpriteBatch::Draw(Microsoft.Xna.Framework.Graphics.Texture2D, Microsoft.Xna.Framework.Rectangle, Microsoft.Xna.Framework.Color)FontStashSharp.SpriteFontBase::DrawText(Microsoft.Xna.Framework.Graphics.SpriteBatch, System.Text.StringBuilder, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color, System.Single, Microsoft.Xna.Framework.Vector2, System.Nullable<Microsoft.Xna.Framework.Vector2>, System.Single, System.Single, System.Single, FontStashSharp.TextStyle, FontStashSharp.FontSystemEffect, System.Int32, System.Int32)FontStashSharp.SpriteFontBase::MeasureString(System.Text.StringBuilder, System.Nullable<Microsoft.Xna.Framework.Vector2>, System.Single, System.Single, FontStashSharp.FontSystemEffect, System.Int32)Microsoft.Xna.Framework.Vector2::get_UnitX()Microsoft.Xna.Framework.Vector2::op_Multiply(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Collections.Generic.Stack<GameTerminal.TerminalLine>::GetEnumerator()Stack.Enumerator<GameTerminal.TerminalLine>::get_Current()FontStashSharp.SpriteFontBase::DrawText(Microsoft.Xna.Framework.Graphics.SpriteBatch, System.String, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Color, System.Single, Microsoft.Xna.Framework.Vector2, System.Nullable<Microsoft.Xna.Framework.Vector2>, System.Single, System.Single, System.Single, FontStashSharp.TextStyle, FontStashSharp.FontSystemEffect, System.Int32, System.Int32)Stack.Enumerator<GameTerminal.TerminalLine>::MoveNext()System.IDisposable::Dispose()Microsoft.Xna.Framework.Graphics.SpriteBatch::End()
Called by
String literals
HEJSAN
KeyPressed
#
public System.Void KeyPressed(Microsoft.Xna.Framework.Input.Keys k, Microsoft.Xna.Framework.Input.KeyboardState ks)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
51DC2A6910FB2AA4D0938DF0DE6A81AD2F6C92515514BB41503B560EE1695F72 - Body hash
ADC18183D203994F904C58F9A11DF4B6328D1784B87BD5C40B2B115944AF411A - IL size1386
Referenced calls
Candide.UserSettings.MiscUserSettings::get_EnableDeveloperConsole()Candide.GameModels.Services.GameStateService::Send_DebugActivated(System.Boolean)System.Text.StringBuilder::get_Length()System.Text.StringBuilder::Append(System.Text.StringBuilder)System.Text.StringBuilder::Clear()System.Object::ToString()System.String::get_Length()System.Collections.Generic.List<System.String>::Add(!0)Candide.Terminal.GameTerminal::AddLine(System.String)System.Text.StringBuilder::Append(System.String)System.String::Substring(System.Int32, System.Int32)System.String::get_Chars(System.Int32)Candide.Terminal.GameTerminal::DoCommand(System.String)System.String::Concat(System.String, System.String)NLua.Lua::DoString(System.String, System.String)System.Text.StringBuilder::get_Chars(System.Int32)Candide.Terminal.GameTerminal::SuggestCommand(System.String)System.Text.StringBuilder::Remove(System.Int32, System.Int32)Candide.Terminal.KeyboardInput::get_CtrlDown()Candide.CandideUI.Text.TextCopy.Clipboard::GetText()System.Collections.Generic.List<System.String>::get_Count()System.Collections.Generic.List<System.String>::get_Item(System.Int32)System.Text.StringBuilder::Insert(System.Int32, System.Object)
String literals
returnchunknull
SuggestCommand
#
private System.Void SuggestCommand(System.String input)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
A4795EF1C5A9FA5DCCD349B68B60855F66CEBB634C2C0C77D4FC5F1094008D94 - Body hash
6697989FDE5F280C84EA87B2A97E0DDE7BCEF0A58DF33533AC184401E6D771F9 - IL size436
Referenced calls
System.String::Split(System.Char, System.StringSplitOptions)System.Collections.Generic.Dictionary<System.String, Candide.Terminal.TerminalCommand>::get_Keys()System.Collections.Generic.Dictionary<System.String, Candide.Terminal.TerminalCommand>::TryGetValue(!0, !1&)System.String::get_Length()System.String::Substring(System.Int32, System.Int32)GameTerminal.TerminalCommandSuggestion::Invoke()GameTerminal.TerminalCommandSuggestion2::Invoke(System.Int32)System.Text.StringBuilder::get_Length()System.Collections.Generic.IEnumerable<System.String>::GetEnumerator()System.Collections.Generic.IEnumerator<System.String>::get_Current()System.String::StartsWith(System.String)System.Text.StringBuilder::Clear()System.Text.StringBuilder::Append(System.String)System.Collections.IEnumerator::MoveNext()System.IDisposable::Dispose()
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gt)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
C1544E50D34A0A70B78F6AB14079E8C4D79D7553E33C67EC11D1EC722424DDA1 - Body hash
EB64D7C09D6D6CF9CB6DBE513459607C749E5B4EDBCA7207E65CA446647ADA69 - IL size8
Called by
WrapText
#
public System.String WrapText(FontStashSharp.StaticSpriteFont font, System.String text, System.Single maxLineWidth)
Method metadata
- Visibilitypublic
- Return type
System.String - StaticTrue
- VirtualFalse
- Hash
1F29EF7DAE7F355CD3FEDEA338B94162FF240BF0A728A7B510B6DAB7B39CEA61 - Body hash
AB4620D45C007E2913A0D3249BE7EA7886F87F6FC81A46CF5D047894AC627D9E - IL size436
Referenced calls
System.String::Split(System.Char, System.StringSplitOptions)System.Text.StringBuilder::.ctor()FontStashSharp.SpriteFontBase::MeasureString(System.String, System.Nullable<Microsoft.Xna.Framework.Vector2>, System.Single, System.Single, FontStashSharp.FontSystemEffect, System.Int32)StringBuilder.AppendInterpolatedStringHandler::.ctor(System.Int32, System.Int32, System.Text.StringBuilder)StringBuilder.AppendInterpolatedStringHandler::AppendFormatted(System.String)StringBuilder.AppendInterpolatedStringHandler::AppendLiteral(System.String)System.Text.StringBuilder::Append(StringBuilder.AppendInterpolatedStringHandler&)System.Object::ToString()System.String::op_Equality(System.String, System.String)System.String::get_Length()System.String::Insert(System.Int32, System.String)System.String::Concat(System.String, System.String)Candide.Terminal.GameTerminal::WrapText(FontStashSharp.StaticSpriteFont, System.String, System.Single)System.Text.StringBuilder::Append(System.String)