Basic actions #3

Open
opened 2025-10-24 11:57:40 +02:00 by kazhnuz · 0 comments
Owner

Features :

  • Actions have a source type (ITEM or ACTIVITY), a source (the id of the item/activity), an action name and a duration.
  • Actions are defined in the sources, but use the exact same structure in both, even if some use will be only valid in items (like "consumes" or state transformations later.
  • An action is validated by checking the conditions, if the parent is valid and/or available, etc.
  • An action defined a set of effects and conditions

API needed

  • GET /player/character/{id}/actions : get the action list
  • GET /player/character/{id}/actions/yesterday : get the previous day action list
  • PUT /player/character/{id}/actions
  • PATCH /player/character/{id}/actions : replace the time of an action.
  • DELETE /player/character/{id}/actions : delete an action of the list based on its data.
  • POST /player/character/{id}/actions/copy : try to copy the whole list.
**Features** : - [ ] Actions have a source type (ITEM or ACTIVITY), a source (the id of the item/activity), an action name and a duration. - [ ] Actions are defined in the sources, but use the exact same structure in both, even if some use will be only valid in items (like "consumes" or state transformations later. - [ ] An action is validated by checking the conditions, if the parent is valid and/or available, etc. - [ ] An action defined a set of effects and conditions **API needed** - [ ] GET /player/character/{id}/actions : get the action list - [ ] GET /player/character/{id}/actions/yesterday : get the previous day action list - [ ] PUT /player/character/{id}/actions - [ ] PATCH /player/character/{id}/actions : replace the time of an action. - [ ] DELETE /player/character/{id}/actions : delete an action of the list based on its data. - [ ] POST /player/character/{id}/actions/copy : try to copy the whole list.
kazhnuz added this to the MVP 1 milestone 2025-10-24 12:21:27 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
game-projects/lifesim#3
No description provided.