protected override void AddInstallers(List <TypeValuePair> args, GameObjectContext context)
 {
     context.AddNormalInstaller(
         new ActionInstaller((subContainer) =>
     {
         var installer = (InstallerBase)subContainer.InstantiateExplicit(
             _installerType, args.Concat(_extraArgs).ToList());
         installer.InstallBindings();
     }));
 }
示例#2
0
        protected override void AddInstallers(List <TypeValuePair> args, GameObjectContext context)
        {
            context.AddNormalInstaller(
                new ActionInstaller(subContainer => {
                var extraArgs = ZenPools.SpawnList <TypeValuePair>();

                extraArgs.AllocFreeAddRange(_extraArgs);
                extraArgs.AllocFreeAddRange(args);

                var installer = (InstallerBase)subContainer.InstantiateExplicit(
                    _installerType, extraArgs);

                ZenPools.DespawnList(extraArgs);

                installer.InstallBindings();
            }));
        }
 protected override void AddInstallers(List <TypeValuePair> args, GameObjectContext context)
 {
     Assert.That(args.IsEmpty());
     context.AddNormalInstaller(
         new ActionInstaller(_installerMethod));
 }