Browse Source

Rename DispatchOnSet file, add constructors without senderID

tags/Rel2b2
sebas77 6 years ago
parent
commit
d37c91eb99
2 changed files with 10 additions and 0 deletions
  1. +4
    -0
      Svelto.ECS/Dispatcher/DispatchOnChange.cs
  2. +6
    -0
      Svelto.ECS/Dispatcher/DispatchOnSet.cs

+ 4
- 0
Svelto.ECS/Dispatcher/DispatchOnChange.cs View File

@@ -7,6 +7,10 @@ namespace Svelto.ECS
public DispatchOnChange(int senderID) : base(senderID)
{ }

public DispatchOnChange()
{
}

public new T value
{
set


Svelto.ECS/Dispatcher/DispatcherOnSet.cs → Svelto.ECS/Dispatcher/DispatchOnSet.cs View File

@@ -9,6 +9,12 @@ namespace Svelto.ECS
_senderID = senderID;
_subscribers = new WeakEvent<int, T>();
}
public DispatchOnSet()
{
_senderID = -1;
_subscribers = new WeakEvent<int, T>();
}

public T value
{

Loading…
Cancel
Save