Class UserToolStateBase
Inheritance
UserToolStateBase
Assembly: fwt.hexterrains.dll
public abstract class UserToolStateBase : SmState, ISmState
Constructors
Declaration
protected UserToolStateBase(IHexTerrainAPI userToolAPI)
Parameters
Fields
Declaration
public bool IsSubstatesVisible
Field Value
Declaration
public UserToolSettings Settings
Field Value
Declaration
public UserToolStateMachine SubStateMachine
Field Value
Properties
Declaration
protected bool HasSubtools { get; }
Property Value
If true, when this user tool state becomes active it asks a terrain to switch to the RequiredViewMode view mode
Declaration
protected virtual bool IsChangeViewMode { get; }
Property Value
Declaration
protected virtual byte OriginalViewMode { get; set; }
Property Value
If IsChangeViewMode is true, this is the view mode that will be set when this user tool state becomes active.
Declaration
protected virtual byte RequiredViewMode { get; }
Property Value
Declaration
public IHexTerrainAPI UserToolAPI { get; set; }
Property Value
Declaration
public abstract int UserToolType { get; }
Property Value
Methods
Declaration
protected virtual TScreen GetUIScreen<TScreen>() where TScreen : UIScreen
Returns
Type Parameters
Declaration
protected virtual void HideSettingsScreen<TScreen>() where TScreen : UIScreen
Type Parameters
Declaration
public override void PrepareToRun()
Overrides
Declaration
public override void PrepareToStop()
Overrides
Declaration
protected virtual void SetupPlanetCursor(bool isCursorVisible)
Parameters
| Type |
Name |
Description |
| bool |
isCursorVisible |
|
Declaration
protected virtual void SetupPlanetCursor(bool isCursorVisible, int size)
Parameters
| Type |
Name |
Description |
| bool |
isCursorVisible |
|
| int |
size |
|
Declaration
protected virtual void SetupPlanetCursor(bool isCursorVisible, int size, Color32 color)
Parameters
| Type |
Name |
Description |
| bool |
isCursorVisible |
|
| int |
size |
|
| Color32 |
color |
|
Declaration
protected virtual void SetupPlanetCursor(bool isCursorVisible, int size, Color32 color, bool isResizable)
Parameters
| Type |
Name |
Description |
| bool |
isCursorVisible |
|
| int |
size |
|
| Color32 |
color |
|
| bool |
isResizable |
|
Declaration
protected virtual TScreen ShowSettingsScreen<TViewData, TScreen>(TViewData viewData) where TScreen : UIScreen, IViewDataReceiver<TViewData>
Parameters
| Type |
Name |
Description |
| TViewData |
viewData |
|
Returns
Type Parameters
| Name |
Description |
| TViewData |
|
| TScreen |
|
Declaration
public override void Tick()
Overrides
Declaration
protected virtual void TryRestoreViewMode()
Declaration
protected virtual void TrySetViewMode()
Implements
Extension Methods