Merge pull request #8839 from RoosterDragon/test-sync-implementations

Test sync implementations
This commit is contained in:
Pavel Penev
2015-09-24 15:17:33 +03:00
6 changed files with 39 additions and 18 deletions

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.Traits
public object Create(ActorInitializer init) { return new ExternalCapturable(init.Self, this); }
}
public class ExternalCapturable : ITick
public class ExternalCapturable : ITick, ISync
{
[Sync] public int CaptureProgressTime = 0;
[Sync] public Actor Captor;

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Mods.Common.Traits
public object Create(ActorInitializer init) { return new ParaDrop(init.Self, this); }
}
public class ParaDrop : ITick, INotifyRemovedFromWorld
public class ParaDrop : ITick, ISync, INotifyRemovedFromWorld
{
readonly ParaDropInfo info;
readonly Actor self;