1234567891011121314151617181920212223242526 |
-
- using System;
- namespace KYFramework
- {
- 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);
- }
- }
|