FrameIT
Tape Class Reference
Inheritance diagram for Tape:
Gadget

Protected Member Functions

override void _Hit (RaycastHit[] hit)
 Called when CommunicationEvents.TriggerEvent is invoked, a.k.a. when Player clicks in GameWorld. More...
 
override void _ActivateLineDrawing ()
 
override void _UpdateLineDrawing ()
 
- Protected Member Functions inherited from Gadget
virtual void _Awake ()
 
virtual void _Enable ()
 
virtual void _Disable ()
 
virtual void _Update ()
 
void ActivateLineDrawing ()
 
void DeactivateLineDrawing ()
 
void UpdateLineDrawing ()
 
virtual void _DeactivateLineDrawing ()
 
Vector3 GetPosition (int i)
 
void SetPosition (int i, Vector3 v)
 
void SetPositions (Vector3[] v)
 
virtual void _ResetGadget ()
 
virtual void _Update_Range ()
 

Static Protected Attributes

static new string s_type = "Tape"
 
- Static Protected Attributes inherited from Gadget
static string s_type = "ERROR: set s_type in T:Gadget"
 

Private Attributes

readonly Vector3[] LineOrigin = new Vector3[1]
 

Additional Inherited Members

- Public Types inherited from Gadget
enum  GadgetIDs {
  Unused = -3 , Undefined = -1 , Pointer = 0 , Tape = 1 ,
  AngleTool = 2 , LineTool = 3 , LotTool = 4 , Pendulum = 5 ,
  PoleTool = 6 , Remover = 7 , EqualCircles = 8 , MiddlePoint = 9
}
 Used to map to a T:Gadget More...
 
- Public Member Functions inherited from Gadget
 Gadget ()
 
void Init (bool overrite)
 
void Awake ()
 
void Enable ()
 
void Disable ()
 
void Update ()
 
void Hit (RaycastHit[] hit)
 
void ResetGadget ()
 
- Static Public Member Functions inherited from Gadget
static bool Equals (Gadget a, Gadget b)
 
- Public Attributes inherited from Gadget
int Rank = int.MinValue
 Position in tool belt. More...
 
string UiName = null
 Tool Name More...
 
float MaxRange = float.NegativeInfinity
 Maximum range for this Tool. For consistency use GadgetDistances in GlobalBehaviour. More...
 
float MaxHeight = float.NegativeInfinity
 
int ButtonIndx = -1
 Which sprite to use More...
 
int MaterialIndx = -1
 
LayerMask LayerHitMask = -1
 Layers to ignore for this gadget by default. More...
 
LayerMask SecondaryLayerMask = -1
 
List< string > Workflow = new()
 Keeps track of selected Fact.Ids the Gadget used to produce a single Fact. More...
 
- Static Public Attributes inherited from Gadget
static Dictionary< Type, GadgetIDsGadgetTypeToIDs
 
static readonly IEnumerable< Type > GadgetTypes = Assembly.GetExecutingAssembly().GetTypes().Where(t => t != typeof(Gadget) && typeof(Gadget).IsAssignableFrom(t))
 Collection of Types of all available Gadgets to choose from. More...
 

Member Function Documentation

◆ _ActivateLineDrawing()

override void Tape._ActivateLineDrawing ( )
protectedvirtual

Reimplemented from Gadget.

◆ _Hit()

override void Tape._Hit ( RaycastHit[]  hit)
protectedvirtual

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

Parameters
hitthe position where it was clicked

Reimplemented from Gadget.

◆ _UpdateLineDrawing()

override void Tape._UpdateLineDrawing ( )
protectedvirtual

Reimplemented from Gadget.

Member Data Documentation

◆ LineOrigin

readonly Vector3 [] Tape.LineOrigin = new Vector3[1]
private

◆ s_type

new string Tape.s_type = "Tape"
staticprotected

[ClassName] for JSON de-/serialization. Set in every non-abstract subclass of Gadget. Also add JsonSubtypes.KnownSubType attribute for deserialization to Gadget!


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