// constructor public BoardGameExam(EType type, int id, int npcId, int rivalId, bool isFirst) : base(type, id, npcId, rivalId, isFirst) { switch (type) { case EType.BOARD_GAME_TRICKER: _valuationBasis = BoardGame.EValuationBasis.Tricker; break; case EType.BOARD_GAME_POLITICIAN: _valuationBasis = BoardGame.EValuationBasis.Politician; break; default: Log.Error(string.Format("not converted from ExamType({0}) to BoardGame.EValuationBasis", type)); break; } if (false == ExtOneToOneExam.isValid(id)) { Log.Error(string.Format("invalid one-to-one exam.id : {0}", id)); } else { _exam = Manager.Instance.DT.OneToOneExam[id]; } _userName = Manager.Instance.Object.MainCharacter.Name; if (false == ExtCharacter.IsValid(_rival.characterId)) { Log.Error(string.Format("invalid character id: {0}", _rival.characterId)); } else { _rivalName = Manager.Instance.DT.Character[_rival.characterId].name; } Manager.Instance.Object.BoardGameMode.EndEvent.Attach(onEnd); }
// constructor public CombatExam(int id, int npcId, int rivalId, bool isFirst) : base(EType.COMBAT, id, npcId, rivalId, isFirst) { if (false == ExtOneToOneExam.isValid(id)) { Log.Error(string.Format("invalid one-to-one exam.id : {0}", id)); } else { _exam = Manager.Instance.DT.OneToOneExam[id]; } _userName = Manager.Instance.Object.MainCharacter.Name; if (false == ExtCharacter.IsValid(_rival.characterId)) { Log.Error(string.Format("invalid character id: {0}", _rival.characterId)); } else { _rivalName = Manager.Instance.DT.Character[_rival.characterId].name; } Manager.Instance.Object.CombatMode.EndEvent.Attach(onEnd); }