public static Command Create(int id) { return(ResuableObjectFactory <Command> .Create(id)); }
public static void Recycle(Command instance) { ResuableObjectFactory <Command> .Recycle(instance); }
public static void Register(int id, System.Type type) { ResuableObjectFactory <Command> .Register(id, type); }
public static DamageModifier Create(int id) { return(ResuableObjectFactory <DamageModifier> .Create(id)); }
//ZZWTODO 现在在客户端保存了所有的Command,因此没有回收 #region 注册创建回收 public static TCommand Create <TCommand>() where TCommand : Command, new() { return(ResuableObjectFactory <Command> .Create <TCommand>()); }
public static void Recycle(DamageModifier instance) { ResuableObjectFactory <DamageModifier> .Recycle(instance); }
public static void Register(int id, System.Type type) { ResuableObjectFactory <DamageModifier> .Register(id, type); }
public static TDamageModifier Create <TDamageModifier>() where TDamageModifier : DamageModifier, new() { return(ResuableObjectFactory <DamageModifier> .Create <TDamageModifier>()); }
public static RenderMessage Create(int id) { return(ResuableObjectFactory <RenderMessage> .Create(id)); }
public static void Register(int id, System.Type type) { ResuableObjectFactory <RenderMessage> .Register(id, type); }
public static void Recycle(RenderMessage instance) { ResuableObjectFactory <RenderMessage> .Recycle(instance); }
public static TRenderMessage Create <TRenderMessage>() where TRenderMessage : RenderMessage, new() { return(ResuableObjectFactory <RenderMessage> .Create <TRenderMessage>()); }