C# Class CommonLib.TrackSwitch

Afficher le fichier Open project: johnselker/Bazinga1186

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Switch ( ) : void

Changes the state of the switch

TrackSwitch ( ) : System

Empty constructor for serialization

TrackSwitch ( string name, string controllerID, TrackBlock trunk, TrackBlock branchClosed, TrackBlock branchOpen ) : System

Primary constructor with initial state

The TrackBlock that you pass as trunk should be connected to Branch The TrackBlock that you pass as branch1 should be connected to Trunk1 The TrackBlock that you pass as branch2 should be connected to Trunk2

Method Details

Switch() public méthode

Changes the state of the switch
public Switch ( ) : void
Résultat void

TrackSwitch() public méthode

Empty constructor for serialization
public TrackSwitch ( ) : System
Résultat System

TrackSwitch() public méthode

Primary constructor with initial state
The TrackBlock that you pass as trunk should be connected to Branch The TrackBlock that you pass as branch1 should be connected to Trunk1 The TrackBlock that you pass as branch2 should be connected to Trunk2
public TrackSwitch ( string name, string controllerID, TrackBlock trunk, TrackBlock branchClosed, TrackBlock branchOpen ) : System
name string Track switch name
controllerID string ID of the TrackController assigned to the switch
trunk TrackBlock the trunk of the switch
branchClosed TrackBlock
branchOpen TrackBlock
Résultat System