Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
EVAConstructionModeEditor Class Reference

Manages the Placement, Movement, Rotation, pivot logic of Parts being selected in EVA Construction Mode More...

Inheritance diagram for EVAConstructionModeEditor:
EditorLogicBase

Classes

class  SelectedPartCollider
 

Public Member Functions

void DestroyHeldPart ()
 Destroys the held part GameObject. More...
 
void ForceDrop ()
 Force drop the current selected part. Only drops it if it's not set as an icon. More...
 
void OnPartDropped ()
 Called when placement is canceled and the current part will return to it's inventory More...
 
void PlayAudioClip (AudioClip clip)
 Plays an audio clip Null checks both this component audio source and the clip passed in. More...
 
void SnapButton (PointerEventData evtData=null)
 
void UpdateAssistingKerbals ()
 Finds Assisting kerbals and updates max part mass limit More...
 

Public Attributes

AudioClip attachClip
 Editor like audio clip, used on EVA Construction Mode. More...
 
float dragSharpness = 0.3f
 Drag overl plane speed for part placing More...
 
float placementGroundOffset = 0.1f
 
float srfAttachAngleSnap = 15f
 Stepped angle snap More...
 
float srfAttachAngleSnapFine = 5f
 Fine Step angle snap More...
 
- Public Attributes inherited from EditorLogicBase
EditorScreen editorScreen
 
Vector3 selPartGrabOffset
 

Protected Member Functions

override void partRotationResetUpdate ()
 
- Protected Member Functions inherited from EditorLogicBase
void AssignAttachIcon (Part part, AttachNode node, bool stackNodes, bool srfNodes, bool dockNodes)
 
void CreateSelectedPartIcon ()
 Creates a part icon for the current selected part when it's not null and it's a cargo part. More...
 
void displayAttachNodeIcons (List< Part > parts, Part selectedPart, bool stackNodes, bool srfNodes, bool dockNodes)
 Displays all attachNodes currently available for attaching. (depending on rules) (false, false disables the node icons) More...
 
float FindPartSurface (Part p, Vector3 origin, Vector3 direction, Vector3 fromParent, RaycastHit hit, out Vector3 srfNormal)
 Find the surface of the part using its enabled colliders More...
 
float FindPartSurface (Part p, Vector3 origin, Vector3 direction, Vector3 fromParent, RaycastHit hit, out Vector3 srfNormal, int layerMask)
 Find the surface of the part using its enabled colliders More...
 
void handleAttachNodeIcons (Part part, bool stackNodes, bool srfNodes, bool dockNodes)
 
void handleChildNodeIcons (Part part)
 
bool PartInHierarchy (Part part, Part tgtPart)
 Detects whether the given part has the target part in it's child hierarchy. Used to detect and prevent parts connecting to their own childs and creating hierarchy loops. More...
 
void partRotationInputUpdate ()
 

Properties

int AssistingKerbals [get]
 Kerbals/engineers assisting in construction More...
 
double CombinedConstructionWeightLimit [get]
 Construction weight limit for handling parts in construction when kerbals are assisting, defined in Newtons (kg*gravity) More...
 
ConstructionMode EVAConstructionMode [get]
 The current state of ConstructionMode of this class. More...
 
bool IsPlacementValid [get]
 True if ground placement is valid. More...
 
Part LastAttachedPart [get]
 References the last attached part. More...
 
Part RootPart [get]
 Current Selected Part, root part for caching. More...
 
Part SelectedPart [get]
 The current selected part. Must be implementing ModuleCargoPart More...
 
- Properties inherited from EditorLogicBase
bool IsCurrentPartFlag [get]
 Returns true if the current held part is a Flag, returns false if there is no current part flag or if it's not a Flag. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from EditorLogicBase
static List< PartFindPartsInChildren (Part part)
 Finds all parts in the child hierarchy of the given part, part included More...
 
static void FindPartsInChildren (ref List< Part > parts, Part part)
 Finds all parts in the child hierarchy of the given part, part included More...
 
- Static Protected Member Functions inherited from EditorLogicBase
static void clearAttachNodes (Part part, Part otherPart)
 
- Protected Attributes inherited from EditorLogicBase
GameObject attachNodePrefab
 
bool checkInputLocks = true
 
KerbalFSM fsm = null
 
ScreenMessage interactMsg
 
bool isCurrentPartFlag
 
ScreenMessage modeMsg
 
bool partTweaked
 
CompoundPart selectedCompoundPart
 
Part selectedPart
 
Quaternion stackRotation
 
- Static Protected Attributes inherited from EditorLogicBase
static string cacheAutoLOC_125488
 
static string cacheAutoLOC_125583
 
static string cacheAutoLOC_125724
 
static string cacheAutoLOC_125784
 
static string cacheAutoLOC_125798
 
static string cacheAutoLOC_6001217
 
static string cacheAutoLOC_6001218
 
static string cacheAutoLOC_6001219
 
static string cacheAutoLOC_6001220
 
static string cacheAutoLOC_6001221
 
static string cacheAutoLOC_6001222
 
static string cacheAutoLOC_6001223
 
static string cacheAutoLOC_6001224
 
static string cacheAutoLOC_6001225
 
static string cacheAutoLOC_6001226
 
static string cacheAutoLOC_6004038
 
static string cacheAutoLOC_6006095
 

Detailed Description

Manages the Placement, Movement, Rotation, pivot logic of Parts being selected in EVA Construction Mode

Member Function Documentation

void EVAConstructionModeEditor.DestroyHeldPart ( )
inline

Destroys the held part GameObject.

void EVAConstructionModeEditor.ForceDrop ( )
inline

Force drop the current selected part. Only drops it if it's not set as an icon.

void EVAConstructionModeEditor.OnPartDropped ( )
inline

Called when placement is canceled and the current part will return to it's inventory

override void EVAConstructionModeEditor.partRotationResetUpdate ( )
inlineprotectedvirtual

Reimplemented from EditorLogicBase.

void EVAConstructionModeEditor.PlayAudioClip ( AudioClip  clip)
inline

Plays an audio clip Null checks both this component audio source and the clip passed in.

Parameters
clipClip to play
void EVAConstructionModeEditor.SnapButton ( PointerEventData  evtData = null)
inline
void EVAConstructionModeEditor.UpdateAssistingKerbals ( )
inline

Finds Assisting kerbals and updates max part mass limit

Member Data Documentation

AudioClip EVAConstructionModeEditor.attachClip

Editor like audio clip, used on EVA Construction Mode.

float EVAConstructionModeEditor.dragSharpness = 0.3f

Drag overl plane speed for part placing

float EVAConstructionModeEditor.placementGroundOffset = 0.1f
float EVAConstructionModeEditor.srfAttachAngleSnap = 15f

Stepped angle snap

float EVAConstructionModeEditor.srfAttachAngleSnapFine = 5f

Fine Step angle snap

Property Documentation

int EVAConstructionModeEditor.AssistingKerbals
get

Kerbals/engineers assisting in construction

double EVAConstructionModeEditor.CombinedConstructionWeightLimit
get

Construction weight limit for handling parts in construction when kerbals are assisting, defined in Newtons (kg*gravity)

ConstructionMode EVAConstructionModeEditor.EVAConstructionMode
get

The current state of ConstructionMode of this class.

bool EVAConstructionModeEditor.IsPlacementValid
get

True if ground placement is valid.

Part EVAConstructionModeEditor.LastAttachedPart
get

References the last attached part.

Part EVAConstructionModeEditor.RootPart
get

Current Selected Part, root part for caching.

Part EVAConstructionModeEditor.SelectedPart
get

The current selected part. Must be implementing ModuleCargoPart


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