コード例 #1
0
        public void UserChats(string username)
        {
            if (username == "dragonhumpersdm" || username == "dragonhumpers")
            {
                return;
            }

            DndViewer viewer = AllViewers.Get(username);

            viewer.LastChatMessage = DateTime.Now;

            if (viewer.AlreadySeen)
            {
                return;
            }

            viewer.AlreadySeen = true;

            if (viewer.CardsPlayed > 0)
            {
                VipGreeting(viewer.UserName);
                if (viewer.HasAnyCharges())
                {
                    TellViewerAboutRemainingCharges(viewer);
                }
            }
            else
            {
                NormalGreeting(viewer.UserName);
            }
        }
コード例 #2
0
 private void StopStreaming()
 {
     AllViewers.Save();
     startedStreaming = false;
 }