예제 #1
0
    public bool AdvanceEventCursor(GameWorldController gameWorldController, GameEvent.OnEventCompleteDelegate onComplete)
    {
        bool success = false;

        if (!IsEventCursorAtLastEvent)
        {
            GameEvent gameEvent  = m_eventList[(int)m_eventCursor];
            string    chatString = gameEvent.ToChatString(gameWorldController);

            gameEvent.ApplyEvent(gameWorldController, onComplete);

            if (chatString.Length > 0)
            {
                gameWorldController.SendChatWindowText(chatString);
            }

            m_eventCursor = m_eventCursor + 1;

            success = true;
        }

        return(success);
    }
예제 #2
0
    public bool AdvanceEventCursor(GameWorldController gameWorldController, GameEvent.OnEventCompleteDelegate onComplete)
    {
        bool success = false;

        if (!IsEventCursorAtLastEvent)
        {
            GameEvent gameEvent= m_eventList[(int)m_eventCursor];
            string chatString = gameEvent.ToChatString(gameWorldController);

            gameEvent.ApplyEvent(gameWorldController, onComplete);

            if (chatString.Length > 0)
            {
                gameWorldController.SendChatWindowText(chatString);
            }

            m_eventCursor = m_eventCursor + 1;

            success = true;
        }

        return success;
    }