Inheritance: ILoggerFactoryAdapter
Ejemplo n.º 1
0
    // Update is called once per frame
    protected void Update()
    {
        foreach (Action action in waitingAdd)
        {
            actions [action.GetInstanceID()] = action;
        }
        waitingAdd.Clear();

        foreach (KeyValuePair <int, Action> key in actions)
        {
            Action action = key.Value;
            if (action.destroy)
            {
                Debug.Log("destroy");
                waitingDelete.Add(key.Key);
            }
            else if (action.enable)
            {
                ActionAdapter PA = new ActionAdapter(action);
                PA.update();
            }
        }
        foreach (int key in waitingDelete)
        {
            Action action = actions [key];
            waitingDelete.Remove(key);
            DestroyObject(action);
        }
        waitingDelete.Clear();
    }
Ejemplo n.º 2
0
    void CreateAdapter(BIWCompleteAction action)
    {
        ActionAdapter instanciatedAdapter = Instantiate(adapter, contentPanelTransform).GetComponent <ActionAdapter>();

        instanciatedAdapter.SetContent(action);
        instanciatedAdapter.OnActionSelected += ActionSelected;
        actionList.Add(instanciatedAdapter);
    }
Ejemplo n.º 3
0
    static CommonLoggingTests()
    {
        var moduleWeaver = new ModuleWeaver();

        assembly = moduleWeaver.ExecuteTestRun(
            assemblyPath: "AssemblyToProcess.dll",
            ignoreCodes: new[] { "0x80131869" }).Assembly;
        actionAdapter      = new ActionAdapter();
        LogManager.Adapter = actionAdapter;
    }
Ejemplo n.º 4
0
    void Start()
    {
        SSDirector director = SSDirector.getInstance();

        director.currentSceneController = this;
        diskFactory   = Singleton <DiskFactory> .Instance;
        actionManager = gameObject.AddComponent <PhyFlyActionManager>() as ActionAdapter;
        actionManager.setRound(round);
        userGUI = gameObject.AddComponent <UserGUI>() as UserGUI;
    }
Ejemplo n.º 5
0
    public CommonLoggingTests()
    {
        AppDomainAssemblyFinder.Attach();
        beforeAssemblyPath = Path.GetFullPath(@"..\..\..\CommonLoggingAssemblyToProcess\bin\Debug\CommonLoggingAssemblyToProcess.dll");
#if (!DEBUG)
        beforeAssemblyPath = beforeAssemblyPath.Replace("Debug", "Release");
#endif
        afterAssemblyPath  = WeaverHelper.Weave(beforeAssemblyPath);
        assembly           = Assembly.LoadFile(afterAssemblyPath);
        actionAdapter      = new ActionAdapter();
        LogManager.Adapter = actionAdapter;
    }
Ejemplo n.º 6
0
 void Awake()
 {
     director = Director.getInstance();
     director.currentSceneController = this;
     actionAdapter = new ActionAdapter();
     actionManager = gameObject.AddComponent <ActionManager>();
     ufoFactory    = Singleton <UFOFactory> .Instance;
     shooter       = gameObject.AddComponent <Shooter>();
     levelManager  = gameObject.AddComponent <LevelManager>();
     LoadResources();
     gameState = GameState.NotStarted;
 }
Ejemplo n.º 7
0
    public CommonLoggingTests()
    {
        AppDomainAssemblyFinder.Attach();
        beforeAssemblyPath = Path.GetFullPath(@"..\..\..\CommonLoggingAssemblyToProcess\bin\Debug\CommonLoggingAssemblyToProcess.dll");
#if (!DEBUG)
        beforeAssemblyPath = beforeAssemblyPath.Replace("Debug", "Release");
#endif
        afterAssemblyPath = WeaverHelper.Weave(beforeAssemblyPath);
        assembly = Assembly.LoadFile(afterAssemblyPath);
        actionAdapter = new ActionAdapter
                         {
                         };
        LogManager.Adapter = actionAdapter;
    }
Ejemplo n.º 8
0
    public CommonLoggingTests()
    {
#if (PORTABLE)
        var path = Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\..\CommonLoggingAssemblyToProcessPortable\bin\Debug\CommonLoggingAssemblyToProcessPortable.dll");
#else
        var path = Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\..\CommonLoggingAssemblyToProcess\bin\Debug\CommonLoggingAssemblyToProcess.dll");
#endif
        AppDomainAssemblyFinder.Attach();
        beforeAssemblyPath = Path.GetFullPath(path);
#if (!DEBUG)
        beforeAssemblyPath = beforeAssemblyPath.Replace("Debug", "Release");
#endif
        afterAssemblyPath  = WeaverHelper.Weave(beforeAssemblyPath);
        assembly           = Assembly.LoadFile(afterAssemblyPath);
        actionAdapter      = new ActionAdapter();
        LogManager.Adapter = actionAdapter;
    }
Ejemplo n.º 9
0
    public CommonLoggingTests()
    {
#if (PORTABLE)
        var path = Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\..\CommonLoggingAssemblyToProcessPortable\bin\Debug\CommonLoggingAssemblyToProcessPortable.dll");
#else
        var path = Path.Combine(TestContext.CurrentContext.TestDirectory,@"..\..\..\CommonLoggingAssemblyToProcess\bin\Debug\CommonLoggingAssemblyToProcess.dll");
#endif
        AppDomainAssemblyFinder.Attach();
        beforeAssemblyPath = Path.GetFullPath(path);
#if (!DEBUG)
        beforeAssemblyPath = beforeAssemblyPath.Replace("Debug", "Release");
#endif
        afterAssemblyPath = WeaverHelper.Weave(beforeAssemblyPath);
        assembly = Assembly.LoadFile(afterAssemblyPath);
        actionAdapter = new ActionAdapter();
        LogManager.Adapter = actionAdapter;
    }
Ejemplo n.º 10
0
 public ActionLog(ActionAdapter actionAdapter)
 {
     this.actionAdapter = actionAdapter;
 }
Ejemplo n.º 11
0
 public void ActionSelected(BIWCompleteAction action, ActionAdapter adapter)
 {
     OnActionSelected?.Invoke(action);
 }
Ejemplo n.º 12
0
 public ActionLog(ActionAdapter actionAdapter)
 {
     this.actionAdapter = actionAdapter;
 }