Skip to content
Permalink
0.4.0
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
29 lines (24 sloc) 739 Bytes
using Improbable.Gdk.Core;
using Unity.Entities;
namespace Improbable.Gdk.Subscriptions
{
[AutoRegisterSubscriptionManager]
public class EntityIdSubscriptionManager : SubscriptionManager<EntityId>
{
public EntityIdSubscriptionManager(World world) : base(world)
{
}
public override Subscription<EntityId> Subscribe(EntityId entityId)
{
var subscription = new Subscription<EntityId>(this, entityId);
subscription.SetAvailable(entityId);
return subscription;
}
public override void Cancel(ISubscription subscription)
{
}
public override void ResetValue(ISubscription subscription)
{
}
}
}