示例#1
0
    public void ReceiveEvent(IGameEvent ev)
    {
        if (ev.Name == "event finished" && ev.getParameter("event") == waiting)
        {
            finished = true;
            if (Game.main)
            {
                Game.main.DeRegisterEventManager(this);
            }

            // eventfinished clone
            if (eventFinished != null)
            {
                eventFinished.Name = ev.Name;
                foreach (var param in ev.Params)
                {
                    eventFinished.setParameter(param, ev.getParameter(param));
                }
            }
        }
    }