Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System.Collections.Generic;
-
- namespace Svelto.ECS
- {
- public class DispatchOnChange<T> : DispatchOnSet<T>
- {
- public DispatchOnChange(int senderID) : base(senderID)
- { }
-
- public new T value
- {
- set
- {
- if (EqualityComparer<T>.Default.Equals(value, _value) == false)
- base.value = value;
- }
-
- get
- {
- return _value;
- }
- }
- }
- }
|