Esempio n. 1
0
        /// <summary>
        /// Initializes the <see cref="Script"/> class.
        /// </summary>
        static Script()
        {
            GlobalOptions = new ScriptGlobalOptions();

            DefaultOptions = new ScriptOptions()
            {
                DebugPrint                    = s => { Script.GlobalOptions.Platform.DefaultPrint(s); },
                DebugInput                    = s => { return(Script.GlobalOptions.Platform.DefaultInput(s)); },
                CheckThreadAccess             = true,
                ScriptLoader                  = PlatformAutoDetector.GetDefaultScriptLoader(),
                TailCallOptimizationThreshold = 65536
            };
        }
Esempio n. 2
0
		/// <summary>
		/// Initializes the <see cref="Script"/> class.
		/// </summary>
		static Script()
		{
			GlobalOptions = new ScriptGlobalOptions();

			DefaultOptions = new ScriptOptions()
			{
				DebugPrint = s => { Script.GlobalOptions.Platform.DefaultPrint(s); },
				DebugInput = s => { return Script.GlobalOptions.Platform.DefaultInput(s); },
				CheckThreadAccess = true,
				ScriptLoader = PlatformAutoDetector.GetDefaultScriptLoader(),
				TailCallOptimizationThreshold = 65536
			};
		}
Esempio n. 3
0
        /// <summary>
        /// Initializes the <see cref="Script"/> class.
        /// </summary>
        static Script()
        {
            GlobalOptions = new ScriptGlobalOptions();

            DefaultOptions = new ScriptOptions()
            {
                DebugPrint                    = s => { Script.GlobalOptions.Platform.DefaultPrint(s); },
                DebugInput                    = s => { return(Script.GlobalOptions.Platform.DefaultInput(s)); },
                CheckThreadAccess             = true,
                ScriptLoader                  = new Loaders.YeeterScriptLoader(),
                TailCallOptimizationThreshold = 65536
            };
            ((Loaders.ScriptLoaderBase)DefaultOptions.ScriptLoader).ModulePaths =
                Loaders.ScriptLoaderBase.UnpackStringPaths(Application.streamingAssetsPath + "/Lua/?.lua");
        }