Ejemplo n.º 1
0
        internal SLUIWorker(SLUIManager parent)
        {
            Parent = parent;

            Debugger = new SLUIDebugger(this);
            Core     = new SLUICore(this);
        }
        /// <summary>
        ///     Creates new SLUI manager.
        /// </summary>
        public static SLUIManager CreateNew([NotNull] string name, [NotNull] Canvas root, string directory)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }
            if (root == null)
            {
                throw new ArgumentNullException(nameof(root));
            }
            var instance = new SLUIManager
            {
                Name      = name,
                Canvas    = root,
                Directory = directory
            };

            return(instance);
        }