public void SetModelComposition(ModelComposition composition) { CurrentModelComposition?.DestroyAdditionalInstances(); CurrentModelComposition = composition; _saberSet.SetModelComposition(CurrentModelComposition); OnModelCompositionSet?.Invoke(CurrentModelComposition); }
public void SetModelComposition(ModelComposition composition) { CurrentModelComposition?.DestroyAdditionalInstances(); CurrentModelComposition = composition; _saberSet.SetModelComposition(CurrentModelComposition); OnModelCompositionSet?.Invoke(CurrentModelComposition); _logger.Info($"Selected Saber: {composition.ListName}"); }
public void SetModelComposition(ModelComposition composition, bool lazyInit = true) { if (CurrentModelComposition != null) { CurrentModelComposition.SaveAdditionalData(); CurrentModelComposition.DestroyAdditionalInstances(); } if (lazyInit && CurrentModelComposition != composition) { composition?.LazyInit(); } CurrentModelComposition = composition; _saberSet.SetModelComposition(CurrentModelComposition); OnModelCompositionSet?.Invoke(CurrentModelComposition); _logger.Info($"Selected Saber: {composition?.ListName}"); }