Andrei486 / uml-diagram-collab

0 stars 0 forks source link

Add command list and remote commands #97

Closed Andrei486 closed 7 months ago

Andrei486 commented 7 months ago

First step to implement a save/load system based on commands.

An ExecutedCommandList wrapping a list is used to track all run commands that aren't preview-related, both run by this user and others.

A new "remote" command type is added, wrapping commands similar to tracked commands. Remote commands are always added to the executed command list. Tracked commands are added to the executed command list only on the host: clients will receive the command bounced back to them as a remote command and add it then.

The "Save" button in the menu has been enabled and prints debug info about the current executed command list, showing each element printed + the total count.

Needs multi-person testing to make sure the remote commands are correctly added to both hosts' and clients' executed command lists.