C# Class CRocketPart, astrochimps

Class with definitions for the rocket parts The rocket parts are scattered in the map. The player must find it all, so it can assemble a rocket to send his team to Mars
Inheritance: CBaseEntity
Exibir arquivo Open project: arcoelho01/astrochimps Class Usage Examples

Public Properties

Property Type Description
Script CRocketPart,
isRevealed bool
numberOfDefinedRocketParts int
rocketPartType eRocketPartType

Public Methods

Method Description
IsVisible ( ) : bool

Just a shortcut for the visibility of the part in the VisibilityControl script

PartIsRevealed ( ) : void

Reveal a part in the scene, enabling it's rendering

PartIsUnrevealed ( ) : void

Hide a part in the scene, disabling it's rendering

Private Methods

Method Description
Awake ( ) : void
OnDestroy ( ) : void

What to do when this object is destroyed

OnDisable ( ) : void

What to do when this object is disabled

OnEnable ( ) : void

What to do when this object is enabled

OnSabotageStatusChange ( CBuilding, buildingEventRaiser, bool bnSabotageStatus ) : void

Called by an event when a building is sabotaged or fixed. If the Lab got sabotaged, we lost the view of the researched parts

Start ( ) : void
Update ( ) : void

Method Details

IsVisible() public method

Just a shortcut for the visibility of the part in the VisibilityControl script
public IsVisible ( ) : bool
return bool

PartIsRevealed() public method

Reveal a part in the scene, enabling it's rendering
public PartIsRevealed ( ) : void
return void

PartIsUnrevealed() public method

Hide a part in the scene, disabling it's rendering
public PartIsUnrevealed ( ) : void
return void

Property Details

Script public_oe static_oe property

public static CRocketPart, Script
return CRocketPart,

isRevealed public_oe property

public bool isRevealed
return bool

numberOfDefinedRocketParts public_oe property

public int numberOfDefinedRocketParts
return int

rocketPartType public_oe property

public eRocketPartType rocketPartType
return eRocketPartType