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

Panel for editing a controllable policy
Inheritance: MonoBehaviour
ファイルを表示 Open project: lgsvl/simulator Class Usage Examples

Public Methods

Method 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

Method 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 method

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

CopyPolicy() public method

Copies policy from this panel
public CopyPolicy ( ) : void
return void

PastePolicy() public method

Pastes policy to this panel
public PastePolicy ( ) : void
return void

RemovePolicyEntry() public method

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
return void

RemovePolicyEntryWithUndo() public method

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
return void

Setup() public method

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
return void

SubmitChangedInputs() public method

Submits changed input field value
public SubmitChangedInputs ( ) : void
return void

UpdatePolicy() public method

Updates the controllable policy basing on the inherited policy entries
public UpdatePolicy ( ) : void
return void