FrameIT
LotTool Class Reference
Inheritance diagram for LotTool:
Gadget

Public Member Functions

override void OnHit (RaycastHit hit)
 Called when CommunicationEvents.TriggerEvent is invoked, a.k.a. when Player clicks in GameWorld. More...
 

Public Attributes

LineRenderer lineRenderer
 
Material linePreviewMaterial
 
- Public Attributes inherited from Gadget
int id = -1
 Position in tool belt. More...
 
string UiName = "Name Not Set"
 Tool Name More...
 
float MaxRange
 Maximum range for this Tool. For consistency use GadgetDistances in GlobalBehaviour. More...
 
Sprite Sprite
 Which sprite to use More...
 
LayerMask ignoreLayerMask
 Layers to ignore for thid gadget by default. More...
 
WorldCursor Cursor
 Which cursor to use More...
 

Private Member Functions

new void Awake ()
 
new void OnEnable ()
 
void OnDisable ()
 
void Update ()
 
void ResetGadget ()
 
void ActivateLineDrawing ()
 
void UpdateLineDrawing ()
 
void DeactivateLineDrawing ()
 

Private Attributes

bool LotModeIsPointSelected = false
 
bool LotModeIsLineSelected = false
 
AbstractLineFact LotModeLineSelected = null
 
PointFact LotModeIntersectionPoint = null
 
PointFact LotModeLinePointA = null
 
RaycastHit LotModeLineHit
 
bool lineDrawingActivated
 
List< Vector3 > linePositions = new List<Vector3>()
 

Additional Inherited Members

- Protected Member Functions inherited from Gadget
void Awake ()
 
void OnEnable ()
 

Member Function Documentation

◆ ActivateLineDrawing()

void LotTool.ActivateLineDrawing ( )
private

◆ Awake()

new void LotTool.Awake ( )
private

◆ DeactivateLineDrawing()

void LotTool.DeactivateLineDrawing ( )
private

◆ OnDisable()

void LotTool.OnDisable ( )
private

◆ OnEnable()

new void LotTool.OnEnable ( )
private

◆ OnHit()

override void LotTool.OnHit ( RaycastHit  hit)
virtual

Called when CommunicationEvents.TriggerEvent is invoked, a.k.a. when Player clicks in GameWorld.

Parameters
hitthe position where it was clicked

Reimplemented from Gadget.

◆ ResetGadget()

void LotTool.ResetGadget ( )
private

◆ Update()

void LotTool.Update ( )
private

◆ UpdateLineDrawing()

void LotTool.UpdateLineDrawing ( )
private

Member Data Documentation

◆ lineDrawingActivated

bool LotTool.lineDrawingActivated
private

◆ linePositions

List<Vector3> LotTool.linePositions = new List<Vector3>()
private

◆ linePreviewMaterial

Material LotTool.linePreviewMaterial

◆ lineRenderer

LineRenderer LotTool.lineRenderer

◆ LotModeIntersectionPoint

PointFact LotTool.LotModeIntersectionPoint = null
private

◆ LotModeIsLineSelected

bool LotTool.LotModeIsLineSelected = false
private

◆ LotModeIsPointSelected

bool LotTool.LotModeIsPointSelected = false
private

◆ LotModeLineHit

RaycastHit LotTool.LotModeLineHit
private

◆ LotModeLinePointA

PointFact LotTool.LotModeLinePointA = null
private

◆ LotModeLineSelected

AbstractLineFact LotTool.LotModeLineSelected = null
private

The documentation for this class was generated from the following file: