public IncidentWorker_ViewerVote() { Log.Message("Incident worker creation"); lastTickVote = 0.0f; voteActiv = false; voteTimer = ThingMaker.MakeThing(ThingDef.Named("VoteTimer")) as SimpleTimer; Find.TickManager.RegisterAllTickabilityFor(voteTimer); myFunc = timerTick; }
public bool remove(TimerTickFunc toRemove) { if (!callbackList.Contains(toRemove)) { return(false); } callbackList.Remove(toRemove); return(true); }
public bool add(TimerTickFunc toAdd) { if (callbackList.Contains(toAdd)) { return(false); } callbackList.Add(toAdd); return(true); }