예제 #1
0
        public UberEffectAsset(
            IKernel kernel,
            IAssetContentManager assetContentManager,
            IRawLaunchArguments rawLaunchArguments,
            string name,
            string code,
            PlatformData platformData,
            bool sourcedFromRaw)
        {
            Name                 = name;
            Code                 = code;
            PlatformData         = platformData;
            _kernel              = kernel;
            _assetContentManager = assetContentManager;
            _rawLaunchArguments  = rawLaunchArguments;
            SourcedFromRaw       = sourcedFromRaw;

            if (PlatformData != null)
            {
                try
                {
                    ReloadEffects();
                }
                catch (NoAssetContentManagerException)
                {
                }
            }
        }
예제 #2
0
 public EffectAsset(
     IKernel kernel,
     IAssetContentManager assetContentManager,
     IRawLaunchArguments rawLaunchArguments,
     string name,
     byte[] effect)
 {
     _kernel = kernel;
     _assetContentManager = assetContentManager;
     _rawLaunchArguments  = rawLaunchArguments;
     Name    = name;
     _effect = effect;
 }
예제 #3
0
 public UberEffectAsset(
     IKernel kernel,
     IAssetContentManager assetContentManager,
     IRawLaunchArguments rawLaunchArguments,
     string name,
     string code,
     PlatformData platformData,
     bool sourcedFromRaw)
 {
     Name                 = name;
     Code                 = code;
     PlatformData         = platformData;
     _kernel              = kernel;
     _assetContentManager = assetContentManager;
     _rawLaunchArguments  = rawLaunchArguments;
     SourcedFromRaw       = sourcedFromRaw;
 }
예제 #4
0
        public ProjectManager(
            IRawLaunchArguments launchArguments,
            IConsoleHandle consoleHandle,
            ICoroutine coroutine,
            IRecentProjects recentProjects)
        {
            _coroutine      = coroutine;
            _consoleHandle  = consoleHandle;
            _recentProjects = recentProjects;

            var arguments      = launchArguments.Arguments;
            var directoryIndex = Array.IndexOf(arguments, "--project");

            if (!(directoryIndex == -1 || directoryIndex == arguments.Length - 1))
            {
                LoadProject(arguments[directoryIndex + 1]);
            }
        }
예제 #5
0
 public EffectAssetLoader(IKernel kernel, IAssetContentManager assetContentManager, IRawLaunchArguments rawLaunchArguments)
 {
     _kernel = kernel;
     _assetContentManager = assetContentManager;
     _rawLaunchArguments  = rawLaunchArguments;
 }
 public UberEffectAssetLoader(IKernel kernel, IAssetContentManager assetContentManager, IRawLaunchArguments rawLaunchArguments)
 {
     _kernel = kernel;
     _assetContentManager = assetContentManager;
     _rawLaunchArguments = rawLaunchArguments;
 }