12345678910111213141516171819202122232425 |
- using System;
- namespace KYFramework
- {
- public interface ILoadSystem
- {
- Type Type();
- void Run(object o);
- }
- public abstract class LoadSystem<T> : ILoadSystem
- {
- public void Run(object o)
- {
- this.Load((T)o);
- }
- public Type Type()
- {
- return typeof(T);
- }
- public abstract void Load(T self);
- }
- }
|