AlertSpeaker.Building_AlertSpeaker.ExposeData C# (CSharp) Method

ExposeData() public method

Saves and loads variables (stored in savegame data).
public ExposeData ( ) : void
return void
        public override void ExposeData()
        {
            base.ExposeData();
            Scribe_Values.LookValue<int>(ref lastUpdateTick, "lastUpdateTick", 0);
            Scribe_Values.LookValue<int>(ref alertStartTick, "alertStartTick", 0);
            Scribe_Values.LookValue<StoryDanger>(ref previousDangerRate, "previousDangerRate", StoryDanger.None);
            Scribe_Values.LookValue<StoryDanger>(ref currentDangerRate, "currentDangerRate", StoryDanger.None);
            Scribe_Values.LookValue<int>(ref lowDangerDrawingTick, "lowDangerDrawingTick", 0);
            Scribe_Values.LookValue<int>(ref highDangerDrawingTick, "highDangerDrawingTick", 0);
            Scribe_Values.LookValue<int>(ref alarmSoundTick, "alarmSoundTick", 0);
        }