public void DeleteBehavior(Behaviors.EditBehavior behavior) { foreach (var ass in dieAssignments) { if (ass.behavior == behavior) { ass.behavior = null; } } }
public void OnAfterDeserialize() { if (currentBehaviorIndex >= 0 && currentBehaviorIndex < AppDataSet.Instance.behaviors.Count) { currentBehavior = AppDataSet.Instance.behaviors[currentBehaviorIndex]; } else { currentBehavior = null; } }
public bool DependsOnBehavior(Behaviors.EditBehavior behavior) { return(dieAssignments.Any(d => d.behavior == behavior)); }