<commit_before>﻿
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Security;

namespace Flood
{
    class Application
    {
        [SuppressUnmanagedCodeSecurity]
        [DllImport("Editor.Native.dll", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr CreateWxPlatformManager();

        public Engine Engine { get; set; }

        public ResourceManager ResourceManager { get; set; }
        public ArchiveVirtual Archive { get; set; }

        public PlatformManager PlatformManager { get; set; }
        public WindowManager WindowManager { get; set; }

        public RenderDevice RenderDevice;
        public RenderView MainView;

        public Application()
        {
            PlatformManager = new PlatformManager(CreateWxPlatformManager());

            Engine = new Engine(PlatformManager);
            Engine.Init();

            // Search for the location of the main assets folder.
            string assetsPath;
            if (!SearchForAssetsDirectory(out assetsPath))
                throw new Exception("Editor assets were not found");

            Archive = new ArchiveVirtual();
            Archive.MountDirectories(assetsPath, Allocator.GetHeap());

            ResourceManager = Engine.ResourceManager;
            ResourceManager.Archive = Archive;

            WindowManager = Engine.WindowManager;

            RenderDevice = Engine.RenderDevice;<commit_msg>Added to application RemotingManager, ModuleManager, WindowManager.<commit_after>﻿
using System;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
using Flood.Modules;
using Flood.Network;
using Flood.Remoting;
using Flood.Remoting.Metadata;
using Flood.Windows;

namespace Flood
{
    public class Application
    {
        [SuppressUnmanagedCodeSecurity]
        [DllImport("Editor.Native.dll", CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr CreateWxPlatformManager();

        public Engine Engine { get; set; }

        public ResourceManager ResourceManager { get; set; }
        public ArchiveVirtual Archive { get; set; }

        public PlatformManager PlatformManager { get; set; }
        public WindowManager NativeWindowManager { get; set; }

        public RenderDevice RenderDevice;
        public RenderView MainView;

        public RemotingManager RemotingManager;

        public ModuleManager ModuleManager;

        public Windows.WindowManager WindowManager;

        public Application()
        {
            PlatformManager = new PlatformManager(CreateWxPlatformManager());

            Engine = new Engine(PlatformManager);
            Engine.Init();

            // Search for the location of the main assets folder.
            string assetsPath;
            if (!SearchForAssetsDirectory(out assetsPath))
                throw new Exception("Editor assets were not found");

            Archive = new ArchiveVirtual();
            Archive.MountDirectories(assetsPath, Allocator.GetHeap());

            ResourceManager = Engine.ResourceManager;
            ResourceManager.Archive = Archive;

            NativeWindowManager = Engine.WindowManager;

            RenderDevice = Engine.RenderDevice;

            ModuleManager = new ModuleManager();

            RemotingManager = new RemotingManager(ModuleManager);

            ModuleManager.Init(RemotingManager.ServiceManager);

            //Initiate global services
            WindowManager = new Windows.WindowManager(this);

            RemotingManager.ServiceManager.GetCreateImplementation<IWindowManager>(WindowManager);
{'fraction_non_alphanumeric': 0.07154605263157894, 'fraction_numerical': 0.0, 'mean_word_length': 2.7045685279187817, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1861378', 'n_tokens_mistral': 862, 'n_tokens_neox': 816, 'n_words': 232}