| 12345678910111213141516171819202122232425 |
- using System;
- namespace ETHotfix
- {
- public interface IChangeSystem
- {
- Type Type();
- void Run(object o);
- }
- public abstract class ChangeSystem<T> : IChangeSystem
- {
- public void Run(object o)
- {
- this.Change((T)o);
- }
- public Type Type()
- {
- return typeof(T);
- }
- public abstract void Change(T self);
- }
- }
|