コード例 #1
0
        public void CreateAnnounce(PlayerInfo creator, string txt, short repetition, short interval)
        {
            Announce a = new Announce(creator, txt, repetition, interval);

            a.SendAnnounce += AnnounceTick;
            a.EndAnnounce  += AnnounceClosed;
            Announces.Add(a);
            SaveAnnounces();
        }
コード例 #2
0
 private void AnnounceClosed(Announce a)
 {
     Announces.Remove(a);
     SaveAnnounces();
 }