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); }
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); }
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()))); }
public virtual void sv_OnHook(Game_PlayerPawn aPlayerPawn, EContentHook aHookType, object aObjParam, int aNumParam) { throw new NotImplementedException(); }