Definition at line 4 of file GridCursor.cs.
◆ DisableCursor()
void GridCursor.DisableCursor |
( |
| ) |
|
|
inline |
◆ DisplayCursor()
Vector3Int GridCursor.DisplayCursor |
( |
| ) |
|
|
inlineprivate |
Display the cursor which marked valid and invalid drop locations.
- Returns
Definition at line 65 of file GridCursor.cs.
◆ EnableCursor()
void GridCursor.EnableCursor |
( |
| ) |
|
|
inline |
◆ GetGridPositionForCursor()
Vector3Int GridCursor.GetGridPositionForCursor |
( |
| ) |
|
|
inline |
Return the position of the cursor.
- Returns
Definition at line 224 of file GridCursor.cs.
◆ GetGridPositionForPlayer()
Vector3Int GridCursor.GetGridPositionForPlayer |
( |
| ) |
|
|
inline |
Return the grid position of the player.
- Returns
Definition at line 235 of file GridCursor.cs.
◆ GetRectTransformPositionForCursor()
Vector2 GridCursor.GetRectTransformPositionForCursor |
( |
Vector3Int |
gridPosition | ) |
|
|
inline |
Transfor the UI Items on canvas to pixel positions.
- Returns
Definition at line 244 of file GridCursor.cs.
◆ IsCursorValidForCommodity()
Test cursor validity for a commodity for the target gridPropertyDetails.
- Parameters
-
- Returns
- Return true if valid otherwise false.
Definition at line 188 of file GridCursor.cs.
◆ IsCursorValidForSeed()
Test cursor validity for a seed for the target gridPropertyDetails.
- Returns
- Return true if valid otherwise false.
Definition at line 197 of file GridCursor.cs.
◆ OnDisable()
void GridCursor.OnDisable |
( |
| ) |
|
|
inlineprivate |
◆ OnEnable()
void GridCursor.OnEnable |
( |
| ) |
|
|
inlineprivate |
◆ SceneLoaded()
void GridCursor.SceneLoaded |
( |
| ) |
|
|
inlineprivate |
◆ SetCursorToInvalid()
void GridCursor.SetCursorToInvalid |
( |
| ) |
|
|
inlineprivate |
◆ SetCursorToValid()
void GridCursor.SetCursorToValid |
( |
| ) |
|
|
inlineprivate |
◆ SetCursorValidity()
void GridCursor.SetCursorValidity |
( |
Vector3Int |
cursorGridPosition, |
|
|
Vector3Int |
playerGridPosition |
|
) |
| |
|
inlineprivate |
Check series of checks to determine validity of the cursor location. Based on the validity set the cursor to be valid or invalid.
- Parameters
-
cursorGridPosition | |
playerGridPosition | |
Definition at line 103 of file GridCursor.cs.
◆ Start()
void GridCursor.Start |
( |
| ) |
|
|
inlineprivate |
◆ Update()
void GridCursor.Update |
( |
| ) |
|
|
inlineprivate |
Call display cursor function at every frame.
Definition at line 53 of file GridCursor.cs.
◆ m_Canvas
Canvas GridCursor.m_Canvas |
|
private |
◆ m_CursorImage
Image GridCursor.m_CursorImage = null |
|
private |
◆ m_CursorIsEnabled
bool GridCursor.m_CursorIsEnabled = false |
|
private |
◆ m_CursorPositionIsValid
bool GridCursor.m_CursorPositionIsValid = false |
|
private |
◆ m_CursorRectTransform
RectTransform GridCursor.m_CursorRectTransform = null |
|
private |
◆ m_GreenCursorSprite
Sprite GridCursor.m_GreenCursorSprite = null |
|
private |
◆ m_Grid
◆ m_ItemUseGridRadius
int GridCursor.m_ItemUseGridRadius = 0 |
|
private |
◆ m_MainCamera
Camera GridCursor.m_MainCamera |
|
private |
◆ m_RedCursorSprite
Sprite GridCursor.m_RedCursorSprite = null |
|
private |
◆ m_SelectedItemType
◆ CursorIsEnabled
bool GridCursor.CursorIsEnabled |
|
getset |
◆ CursorPositionIsValid
bool GridCursor.CursorPositionIsValid |
|
getset |
◆ ItemUseGridRadius
int GridCursor.ItemUseGridRadius |
|
getset |
◆ SelectedItemType
The documentation for this class was generated from the following file: