C# Class Simulator.ScenarioEditor.UI.EditElement.Controllables.PolicyEditPanel

Panel for editing a controllable policy
Inheritance: MonoBehaviour
Afficher le fichier Open project: lgsvl/simulator Class Usage Examples

Méthodes publiques

Méthode Description
AddPolicyEntryWithUndo ( ) : void

Add a single policy entry to this edit panel, registers the undo record

CopyPolicy ( ) : void

Copies policy from this panel

PastePolicy ( ) : void

Pastes policy to this panel

RemovePolicyEntry ( Simulator.ScenarioEditor.UI.EditElement.Controllables.PolicyEntry entry, bool updatePolicy = true ) : void

Remove the policy entry from this edit panel

RemovePolicyEntryWithUndo ( Simulator.ScenarioEditor.UI.EditElement.Controllables.PolicyEntry entry ) : void

Remove the policy entry from this edit panel, registers the undo record

Setup ( IControllable controllable, List initialPolicy ) : void

Setups the policy edit panel according to the passed controllable and policy

SubmitChangedInputs ( ) : void

Submits changed input field value

UpdatePolicy ( ) : void

Updates the controllable policy basing on the inherited policy entries

Private Methods

Méthode Description
AddPolicyEntry ( Simulator.ScenarioEditor.UI.EditElement.Controllables.PolicyEntry newEntry = null, bool updatePolicy = true ) : void

Add a single policy entry to this edit panel

SetPolicy ( List policy ) : void

Sets the policy to this panel and initialize editable entries

Method Details

AddPolicyEntryWithUndo() public méthode

Add a single policy entry to this edit panel, registers the undo record
public AddPolicyEntryWithUndo ( ) : void
Résultat void

CopyPolicy() public méthode

Copies policy from this panel
public CopyPolicy ( ) : void
Résultat void

PastePolicy() public méthode

Pastes policy to this panel
public PastePolicy ( ) : void
Résultat void

RemovePolicyEntry() public méthode

Remove the policy entry from this edit panel
public RemovePolicyEntry ( Simulator.ScenarioEditor.UI.EditElement.Controllables.PolicyEntry entry, bool updatePolicy = true ) : void
entry Simulator.ScenarioEditor.UI.EditElement.Controllables.PolicyEntry Policy entry to be removed
updatePolicy bool Should the policy be updated
Résultat void

RemovePolicyEntryWithUndo() public méthode

Remove the policy entry from this edit panel, registers the undo record
public RemovePolicyEntryWithUndo ( Simulator.ScenarioEditor.UI.EditElement.Controllables.PolicyEntry entry ) : void
entry Simulator.ScenarioEditor.UI.EditElement.Controllables.PolicyEntry Policy entry to be removed
Résultat void

Setup() public méthode

Setups the policy edit panel according to the passed controllable and policy
public Setup ( IControllable controllable, List initialPolicy ) : void
controllable IControllable Scenario controllable which policy will be edited
initialPolicy List Policy that will be applied during the setup
Résultat void

SubmitChangedInputs() public méthode

Submits changed input field value
public SubmitChangedInputs ( ) : void
Résultat void

UpdatePolicy() public méthode

Updates the controllable policy basing on the inherited policy entries
public UpdatePolicy ( ) : void
Résultat void