Пример #1
0
        public bool ObtainQuest(Game_Pawn aPawn, Quest_Type aQuest)
        {
            Game_PlayerPawn playerPawn = (aPawn as Game_PlayerPawn);

            if (playerPawn != null && aQuest != null && playerPawn.questLog != null)
            {
                return(playerPawn.questLog.sv_AcceptQuest(aQuest));
            }
            return(false);
        }
Пример #2
0
        public bool HasCompletedTarget(Game_Pawn aPawn, Quest_Target aTarget)
        {
            Game_PlayerPawn playerPawn = (aPawn as Game_PlayerPawn);

            if (playerPawn != null && aTarget != null)
            {
                if (aTarget.Check(playerPawn.questLog.GetTargetProgress(aTarget.GetQuest(), aTarget.GetIndex())))
                {
                    return(true);
                }
            }
            return(false);
        }
Пример #3
0
        public bool HasFailedTarget(Game_Pawn aPawn, Quest_Target aTarget)
        {
            Game_PlayerPawn playerPawn = aPawn as Game_PlayerPawn;

            return(playerPawn != null && aTarget != null && aTarget.Failed(playerPawn.questLog.GetTargetProgress(aTarget.GetQuest(), aTarget.GetIndex())));
        }
Пример #4
0
 public virtual void sv_OnHook(Game_PlayerPawn aPlayerPawn, EContentHook aHookType, object aObjParam, int aNumParam)
 {
     throw new NotImplementedException();
 }