-
-
Notifications
You must be signed in to change notification settings - Fork 19
Add Sit schedule action and duration support #52
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,8 @@ public PrefabScheduleBuilder WalkTo(UnityEngine.Vector3 destination, int startTi | |
| /// Adds a seating action that moves the NPC to an available seat within the specified seat set. | ||
| /// </summary> | ||
| /// <param name="seatSetName">The GameObject name of the <c>AvatarSeatSet</c> to use.</param> | ||
| /// <param name="startTime">The time when this action should start, in minutes from midnight (0-1439).</param> | ||
| /// <param name="startTime">The time when this action should start, in 24-hour time (e.g. 830 for 8:30 AM).</param> | ||
| /// <param name="durationMinutes">Duration of the sit action in minutes. Defaults to 60.</param> | ||
|
Comment on lines
+67
to
+68
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Align the This overload now documents 🤖 Prompt for AI Agents |
||
| /// <param name="warpIfSkipped">Whether the NPC should be warped to the seat if the action is skipped. Default is <c>false</c>.</param> | ||
| /// <param name="name">Optional custom name for this action; defaults to "Sit".</param> | ||
| /// <returns>This builder instance for method chaining.</returns> | ||
|
|
@@ -73,14 +74,15 @@ public PrefabScheduleBuilder WalkTo(UnityEngine.Vector3 destination, int startTi | |
| /// lookup scenarios (GUIDs, transform paths, direct references) instantiate <see cref="SitSpec"/> manually and | ||
| /// add it via <see cref="Add(IScheduleActionSpec)"/>. | ||
| /// </remarks> | ||
| public PrefabScheduleBuilder SitAtSeatSet(string seatSetName, int startTime, bool warpIfSkipped = false, string name = null) | ||
| public PrefabScheduleBuilder SitAtSeatSet(string seatSetName, int startTime, int durationMinutes = 60, bool warpIfSkipped = false, string name = null) | ||
| { | ||
| if (!string.IsNullOrEmpty(seatSetName)) | ||
| { | ||
| _specs.Add(new SitSpec | ||
| { | ||
| SeatSetName = seatSetName, | ||
| StartTime = startTime, | ||
| DurationMinutes = durationMinutes, | ||
| WarpIfSkipped = warpIfSkipped, | ||
| Name = name | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the
DurationMinutesXML docs.The summary here says non-positive values fall back to "the time remaining until the next scheduled action", but Line 107 hard-codes a
60minute fallback. That makes the public contract misleading for anyone constructingSitSpecdirectly.📝 Proposed doc fix
📝 Committable suggestion
🤖 Prompt for AI Agents