public virtual void TimeEnd() { hackEndTimeVote = true; int vote; IVotable iv = this as IVotable; if (iv != null) { iv.Vote(TasSayEventArgs.Default, new string[] {}); } }
public void RegisterVote(TasSayEventArgs e, string[] words) { if (activePoll != null) { if (activePoll.Vote(e, words)) { StopVote(); } } else { Respond(e, "There is no poll going on, start some first"); } }
public void RegisterVote(TasSayEventArgs e, bool vote) { if (activePoll != null) { if (activePoll.Vote(e, vote)) { pollTimer.Enabled = false; activePoll = null; } } else { Respond(e, "There is no poll going on, start some first"); } }