Ejemplo n.º 1
0
        private void CheckStatus()
        {
            if (actorList.Count == 0)
            {
                actorList.Clear();
                isPlay = false;

                ServerApp.Logger.InfoFormat("The room serial: {0} is close.", SerialNum);
                ServerApp.instance.cellManager.RemoveCell(this.SerialNum);
                return;
            }

            RoomUpdateEvent.SendEvent(this);

            if (actorList.Count == Limit)
            {
                foreach (ActorInfo t in actorList)
                {
                    if (!t.isReady)
                        return;
                }
                GameStartEvent.SendEvent(this);
            }
        }