From 664fb0fbfd21a25d1f86938a186f6ec9cea6d882 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 29 Dec 2015 10:01:42 +0100 Subject: 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. --- common/commands/createentity.fbs | 1 + common/commands/deleteentity.fbs | 1 + common/commands/modifyentity.fbs | 1 + 3 files changed, 3 insertions(+) (limited to 'common/commands') 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 { entityId: string; domainType: string; delta: [ubyte]; + replayToSource: bool = true; } root_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 { revision: ulong; entityId: string; domainType: string; + replayToSource: bool = true; } root_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 { deletions: [string]; //A list of deleted properties domainType: string; delta: [ubyte]; //Contains an entity buffer with all changed properties set + replayToSource: bool = true; } root_type ModifyEntity; -- cgit v1.2.3