summaryrefslogtreecommitdiffstats
path: root/common/commands
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-29 10:01:42 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-12-29 10:01:42 +0100
commit664fb0fbfd21a25d1f86938a186f6ec9cea6d882 (patch)
treed819fb4eba44da46fd9c9e9d5bd051e0124f68ee /common/commands
parent1998b8d35478205118cea5cc215c682b235434f1 (diff)
downloadsink-664fb0fbfd21a25d1f86938a186f6ec9cea6d882.tar.gz
sink-664fb0fbfd21a25d1f86938a186f6ec9cea6d882.zip
Mark commands with whether they need to be replayed
This way we don't have to try to figure out whether a change is coming from the source already.
Diffstat (limited to 'common/commands')
-rw-r--r--common/commands/createentity.fbs1
-rw-r--r--common/commands/deleteentity.fbs1
-rw-r--r--common/commands/modifyentity.fbs1
3 files changed, 3 insertions, 0 deletions
diff --git a/common/commands/createentity.fbs b/common/commands/createentity.fbs
index a5bc95c..5358dea 100644
--- a/common/commands/createentity.fbs
+++ b/common/commands/createentity.fbs
@@ -4,6 +4,7 @@ table CreateEntity {
4 entityId: string; 4 entityId: string;
5 domainType: string; 5 domainType: string;
6 delta: [ubyte]; 6 delta: [ubyte];
7 replayToSource: bool = true;
7} 8}
8 9
9root_type CreateEntity; 10root_type CreateEntity;
diff --git a/common/commands/deleteentity.fbs b/common/commands/deleteentity.fbs
index 4f32b54..9f865be 100644
--- a/common/commands/deleteentity.fbs
+++ b/common/commands/deleteentity.fbs
@@ -4,6 +4,7 @@ table DeleteEntity {
4 revision: ulong; 4 revision: ulong;
5 entityId: string; 5 entityId: string;
6 domainType: string; 6 domainType: string;
7 replayToSource: bool = true;
7} 8}
8 9
9root_type DeleteEntity; 10root_type DeleteEntity;
diff --git a/common/commands/modifyentity.fbs b/common/commands/modifyentity.fbs
index a59eb9b..03b543f 100644
--- a/common/commands/modifyentity.fbs
+++ b/common/commands/modifyentity.fbs
@@ -6,6 +6,7 @@ table ModifyEntity {
6 deletions: [string]; //A list of deleted properties 6 deletions: [string]; //A list of deleted properties
7 domainType: string; 7 domainType: string;
8 delta: [ubyte]; //Contains an entity buffer with all changed properties set 8 delta: [ubyte]; //Contains an entity buffer with all changed properties set
9 replayToSource: bool = true;
9} 10}
10 11
11root_type ModifyEntity; 12root_type ModifyEntity;