C# 클래스 Simulator.ScenarioEditor.UI.EditElement.Controllables.PolicyEditPanel

Panel for editing a controllable policy
상속: MonoBehaviour
파일 보기 프로젝트 열기: lgsvl/simulator 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddPolicyEntryWithUndo() 공개 메소드

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

CopyPolicy() 공개 메소드

Copies policy from this panel
public CopyPolicy ( ) : void
리턴 void

PastePolicy() 공개 메소드

Pastes policy to this panel
public PastePolicy ( ) : void
리턴 void

RemovePolicyEntry() 공개 메소드

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
리턴 void

RemovePolicyEntryWithUndo() 공개 메소드

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
리턴 void

Setup() 공개 메소드

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
리턴 void

SubmitChangedInputs() 공개 메소드

Submits changed input field value
public SubmitChangedInputs ( ) : void
리턴 void

UpdatePolicy() 공개 메소드

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