Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REG-2183] Initial QLearning Bot Segment #356

Merged
merged 3 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,20 @@ private static bool DoesContextNeedSetUp()
return _context is not BotSegmentsPlaybackController ;
}

public static bool TryStartSession(int segmentNumber, MonoBehaviour context, RGActionManagerSettings actionSettings = null)
{
try
{
StartSession(segmentNumber, context, actionSettings);
return true;
}
catch (Exception ex)
{
RGDebug.LogWarning("Unable to start RGActionManager Session - " + ex);
return false;
}
}

/// <summary>
/// Start an action manager session. This should be called prior to any calls to GetValidActions().
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static class RGActionRuntimeCoverageAnalysis

public static void Reset()
{
_inProgress = false;
_allActions.Clear();
_analysisData.Clear();
_currentSegment = -1;
Expand Down
Loading
Loading