public void OnPreLoad() { Tunings.Inject <Bed, EnterRelaxing.Definition, Definition>(false); InteractionTuning tuning = Tunings.GetTuning <Bed, BedRelax.Definition>(); if (tuning != null) { tuning.AddFlags(InteractionTuning.FlagField.DisallowAutonomous); } sOldSingleton = Singleton; Singleton = new Definition(false); WoohooSingleton = new Definition(true); }
public void SetAutonomous(SettingsKey key, InteractionTuning tuning, bool value) { mAutonomous = value; mFlags |= Flags.Autonomous; if (Retuner.StoreDefault(key, tuning)) { if (value) { tuning.RemoveFlags(InteractionTuning.FlagField.DisallowAutonomous); } else { tuning.AddFlags(InteractionTuning.FlagField.DisallowAutonomous); } } }
public void SetUserDirected(SettingsKey key, InteractionTuning tuning, bool value) { mUserDirected = value; mFlags |= Flags.UserDirected; if (Retuner.StoreDefault(key, tuning)) { if (value) { tuning.RemoveFlags(InteractionTuning.FlagField.DisallowUserDirected); } else { tuning.AddFlags(InteractionTuning.FlagField.DisallowUserDirected); } } }