public SubStateMachine GetSubStateMachine(SubStateMachineSelection nameOrID, string text) { if (HasSubStateMachine(nameOrID, text)) { return(nameOrID == SubStateMachineSelection.Name ? subMachines[text] : states[text] as SubStateMachine); } return(null); }
public void RemoveSubStateMachines(SubStateMachineSelection selectionWay, string text) { foreach (Layer layer in layers) { if (layer.HasSubStateMachine(selectionWay, text)) { layer.RemoveSubStateMachine(GetSubStateMachine(selectionWay, text, layer)); } } }
public bool HasSubStateMachine(SubStateMachineSelection selectionWay, string text) { foreach (Layer layer in layers) { if (HasSubStateMachine(selectionWay, text, layer)) { return(true); } } return(false); }
public SubStateMachine[] GetSubStateMachines(SubStateMachineSelection selectionWay, string text) { List <SubStateMachine> gotSubStateMachines = new List <SubStateMachine>(); foreach (Layer layer in layers) { if (layer.HasSubStateMachine(selectionWay, text)) { gotSubStateMachines.Add(layer.GetSubStateMachine(selectionWay, text)); } } return(gotSubStateMachines.ToArray()); }
public SubStateMachine GetSubStateMachine(SubStateMachineSelection selectionWay, string text, int layerIndexToGetState) { return(GetSubStateMachine(selectionWay, text, GetLayer(layerIndexToGetState))); }
public SubStateMachine GetSubStateMachine(SubStateMachineSelection selectionWay, string text, Layer layerToGetState) { return(layerToGetState.GetSubStateMachine(selectionWay, text)); }
public SubStateMachine GetSubStateMachine(SubStateMachineSelection selectionWay, string text, InListLocation stateSelection = InListLocation.First) { List <Layer> foundLayers = new List <Layer>(GetLayers(layer => layer.HasSubStateMachine(selectionWay, text))); return(GetSubStateMachine(selectionWay, text, GetLayer(GetListLocationIndex(stateSelection, foundLayers)))); }
public void RemoveSubStateMachine(SubStateMachineSelection selectionWay, string text, Layer layerToRemoveState) { RemoveSubStateMachine(layerToRemoveState.GetSubStateMachine(selectionWay, text)); }
public void RemoveSubStateMachine(SubStateMachineSelection selectionWay, string text, int layerIndex) { RemoveSubStateMachine(GetSubStateMachine(selectionWay, text, GetLayer(layerIndex))); }
public void RemoveSubStateMachine(SubStateMachineSelection selectionWay, string text, InListLocation stateSelection = InListLocation.First) { RemoveSubStateMachine(GetSubStateMachine(selectionWay, text, stateSelection)); }
public bool HasSubStateMachine(SubStateMachineSelection selectionWay, string text, InListLocation layerLocation = InListLocation.First) { return(HasSubStateMachine(selectionWay, text, GetLayer(layerLocation))); }
public bool HasSubStateMachine(SubStateMachineSelection selectionWay, string text, int layerIndex) { return(HasSubStateMachine(selectionWay, text, GetLayer(layerIndex))); }
public bool HasSubStateMachine(SubStateMachineSelection selectionWay, string text, Layer layerToFindSubStateMachine) { return(layerToFindSubStateMachine.HasSubStateMachine(selectionWay, text)); }
public bool HasSubStateMachine(SubStateMachineSelection nameOrID, string text) { Validator.ValidateID(ref text); return(nameOrID == SubStateMachineSelection.Name ? subMachines.ContainsKey(text) : states.ContainsKey(text)); }