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

Commit

Permalink
update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Brynes committed Feb 19, 2020
1 parent ac4b5d8 commit 719965b
Show file tree
Hide file tree
Showing 13 changed files with 104 additions and 182 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ public override Subscription<DependentComponentReader> Subscribe(EntityId entity
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependentComponentReader>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToReaderSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -124,7 +119,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependentComponentReader>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}

Expand Down Expand Up @@ -227,12 +224,7 @@ public override Subscription<DependentComponentWriter> Subscribe(EntityId entity
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependentComponentWriter>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToWriterSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -249,7 +241,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependentComponentWriter>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ public override Subscription<DependentDataComponentReader> Subscribe(EntityId en
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependentDataComponentReader>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToReaderSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -124,7 +119,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependentDataComponentReader>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}

Expand Down Expand Up @@ -227,12 +224,7 @@ public override Subscription<DependentDataComponentWriter> Subscribe(EntityId en
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependentDataComponentWriter>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToWriterSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -249,7 +241,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependentDataComponentWriter>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ public override Subscription<DependencyTestChildReader> Subscribe(EntityId entit
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependencyTestChildReader>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToReaderSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -124,7 +119,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependencyTestChildReader>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}

Expand Down Expand Up @@ -227,12 +224,7 @@ public override Subscription<DependencyTestChildWriter> Subscribe(EntityId entit
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependencyTestChildWriter>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToWriterSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -249,7 +241,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependencyTestChildWriter>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ public override Subscription<DependencyTestReader> Subscribe(EntityId entityId)
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependencyTestReader>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToReaderSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -124,7 +119,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependencyTestReader>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}

Expand Down Expand Up @@ -227,12 +224,7 @@ public override Subscription<DependencyTestWriter> Subscribe(EntityId entityId)
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependencyTestWriter>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToWriterSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -249,7 +241,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependencyTestWriter>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ public override Subscription<DependencyTestGrandchildReader> Subscribe(EntityId
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependencyTestGrandchildReader>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToReaderSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -124,7 +119,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependencyTestGrandchildReader>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}

Expand Down Expand Up @@ -227,12 +224,7 @@ public override Subscription<DependencyTestGrandchildWriter> Subscribe(EntityId
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<DependencyTestGrandchildWriter>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToWriterSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -249,7 +241,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<DependencyTestGrandchildWriter>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ public override Subscription<ComponentUsingNestedTypeSameNameReader> Subscribe(E
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<ComponentUsingNestedTypeSameNameReader>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToReaderSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -124,7 +119,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<ComponentUsingNestedTypeSameNameReader>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}

Expand Down Expand Up @@ -227,12 +224,7 @@ public override Subscription<ComponentUsingNestedTypeSameNameWriter> Subscribe(E
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<ComponentUsingNestedTypeSameNameWriter>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToWriterSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -249,7 +241,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<ComponentUsingNestedTypeSameNameWriter>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ public override Subscription<ExhaustiveEntityReader> Subscribe(EntityId entityId
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<ExhaustiveEntityReader>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToReaderSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -124,7 +119,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<ExhaustiveEntityReader>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}

Expand Down Expand Up @@ -227,12 +224,7 @@ public override Subscription<ExhaustiveEntityWriter> Subscribe(EntityId entityId
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<ExhaustiveEntityWriter>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToWriterSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -249,7 +241,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<ExhaustiveEntityWriter>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,7 @@ public override Subscription<ExhaustiveMapKeyReader> Subscribe(EntityId entityId
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<ExhaustiveMapKeyReader>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToReaderSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -124,7 +119,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<ExhaustiveMapKeyReader>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}

Expand Down Expand Up @@ -227,12 +224,7 @@ public override Subscription<ExhaustiveMapKeyWriter> Subscribe(EntityId entityId
public override void Cancel(ISubscription subscription)
{
var sub = ((Subscription<ExhaustiveMapKeyWriter>) subscription);
if (sub.HasValue)
{
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
ResetValue(sub);

var subscriptions = entityIdToWriterSubscriptions[sub.EntityId];
subscriptions.Remove(sub);
Expand All @@ -249,7 +241,9 @@ public override void ResetValue(ISubscription subscription)
var sub = ((Subscription<ExhaustiveMapKeyWriter>) subscription);
if (sub.HasValue)
{
sub.Value.RemoveAllCallbacks();
var reader = sub.Value;
reader.IsValid = false;
reader.RemoveAllCallbacks();
}
}
}
Expand Down
Loading

0 comments on commit 719965b

Please sign in to comment.