Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Remove customreplicators #1308

Merged
merged 6 commits into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
### Breaking Changes

- The `DeploymentLauncher` project has an additional required argument `runtime_version`. If you invoke this manually through `dotnet`, you'll need to provide this argument. [#1299](https://github.com/spatialos/gdk-for-unity/pull/1299)
- Schema components in ECS no longer have a `ComponentId` property. [#1308](https://github.com/spatialos/gdk-for-unity/pull/1308)
- You should use `ComponentDatabase.GetComponentId<T>()` instead.
- `CustomSpatialOSSendSystem` is no longer available. [#1308](https://github.com/spatialos/gdk-for-unity/pull/1308)

### Added

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ namespace Improbable.Gdk.Core
/// </summary>
public interface ISpatialComponentData
{
/// <summary>
/// The component ID of the SpatialOS component as defined in schema.
/// </summary>
uint ComponentId { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,6 @@ protected override void OnDestroy()
base.OnDestroy();
}

public bool TryRegisterCustomReplicationSystem(uint componentId)
{
if (componentReplicators.All(componentReplicator => componentReplicator.ComponentId != componentId))
{
return false;
}

// The default replication system is removed, instead the custom one is responsible for replication.
return componentReplicators.Remove(componentReplicators.First(
componentReplicator => componentReplicator.ComponentId == componentId));
}

protected override void OnUpdate()
{
var componentUpdateSystem = World.GetExistingSystem<ComponentUpdateSystem>();
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.