Exemplo n.º 1
0
        // constructor
        protected Exam(EType type, int id, int npcId, int rivalId, bool isFirst)
        {
            _type = type;
            _id = id;
            _npcId = npcId;
            _rivalId = rivalId;
            _isFirst = isFirst;

            if (ExtRival.isValid(_rivalId))
                _rival = Manager.Instance.DT.Rival[_rivalId];
            else
                Log.Error(string.Format("invalid rival id: {0}", _rivalId));

            _iterator = null;

            _startEvent = new StartEvent();
            _endEvent = new EndEvent();
            _dialogueEvent = new DialogueEvent();
        }
Exemplo n.º 2
0
 private void end()
 {
     _iterator = null;
     EndEvent.Invoke();
 }