mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 21:41:37 +00:00
Implement live syncback feature and enhance API for service data transfer
- Added a new `performSyncback` function in the `App` module to handle the synchronization of service data from the game to the server. - Introduced a `SyncbackConfirm` UI component to confirm syncback actions from the user. - Updated the API to include a new `/api/syncback` endpoint for handling syncback requests, validating protocol and server versions. - Enhanced the `SyncbackSignal` mechanism to facilitate communication between the server and the syncback process. - Added tests to ensure the functionality of the live syncback feature and its integration with the CLI. These changes improve the overall synchronization capabilities of the application, allowing for real-time updates and better project management.
This commit is contained in:
parent
6f8e5a5cf2
commit
307ac81aec
17 changed files with 1411 additions and 97 deletions
18
rojo-test/serve-tests/live_syncback/default.project.json5
Normal file
18
rojo-test/serve-tests/live_syncback/default.project.json5
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "live_syncback",
|
||||
"tree": {
|
||||
"$className": "DataModel",
|
||||
"ReplicatedStorage": {
|
||||
"$className": "ReplicatedStorage",
|
||||
"$path": "src/shared"
|
||||
},
|
||||
"ServerScriptService": {
|
||||
"$className": "ServerScriptService",
|
||||
"$path": "src/server"
|
||||
},
|
||||
"Workspace": {
|
||||
"$className": "Workspace",
|
||||
"$path": "src/workspace"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
print("old server script")
|
||||
|
|
@ -0,0 +1 @@
|
|||
return "old"
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"className": "Part",
|
||||
"properties": {
|
||||
"Anchored": true
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"name": "live_syncback_place_ids",
|
||||
"servePlaceIds": [123],
|
||||
"blockedPlaceIds": [999],
|
||||
"tree": {
|
||||
"$className": "DataModel",
|
||||
"ReplicatedStorage": {
|
||||
"$className": "ReplicatedStorage",
|
||||
"$path": "src/shared"
|
||||
},
|
||||
"ServerScriptService": {
|
||||
"$className": "ServerScriptService",
|
||||
"$path": "src/server"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
-- placeholder
|
||||
|
|
@ -0,0 +1 @@
|
|||
return nil
|
||||
Loading…
Add table
Add a link
Reference in a new issue