Beispiel #1
0
    //构造
    public void construct()
    {
        //比较方法
        _comparer.setCompare(triggerEventRegistDataCompare);

        _eventPool        = new ObjectPool <TriggerEvent>(toCreateEvent);
        _instancePool     = new ObjectPool <TriggerInstance>(toCreateInstance);
        _actionRunnerPool = new ObjectPool <TriggerActionRunner>(toCreateActionRunner);

        _eventRegistDataPool.setEnable(CommonSetting.triggerUsePool);
        _argPool.setEnable(CommonSetting.triggerUsePool);
        _eventPool.setEnable(CommonSetting.triggerUsePool);
        _instancePool.setEnable(CommonSetting.triggerUsePool);
        _intervalPool.setEnable(CommonSetting.triggerUsePool);
        _actionRunnerPool.setEnable(CommonSetting.triggerUsePool);

        _funcMaker = GameC.trigger.getFuncMaker();
    }
Beispiel #2
0
 public void addFuncMaker(TriggerFuncMaker maker)
 {
     _funcMaker.addDic(maker);
 }