示例#1
0
        public ComponentFactory()
        {
            componentPool = new MultiTypePool <IBaseComponent>(128);

            PoolSize = 512;
        }
 public ActionFactory()
 {
     cachedActions = new Dictionary <Type, IGameAction>(128);
     actionPools   = new MultiTypePool <IGameAction>(256);
 }
示例#3
0
 public BehaviorFactory()
 {
     behaviorPools     = new MultiTypePool <IBehavior>();
     templateBehaviors = new Dictionary <string, IBehavior>();
 }