void ScriptingDefinitionsToStream(Import import)
        {
            if (Head.ScriptFunctionsCount > 0)
            {
                var sfunc = new ScriptFunction();
                foreach (Import.ScriptFunction sc in import.ScriptFunctions.Values)
                {
                    sfunc.Reset(sc);
                    sfunc.Write(MemoryStream);
                }
            }

            if (Head.ScriptGlobalsCount > 0)
            {
                var sglob = new ScriptGlobal();
                foreach (Import.ScriptGlobal sc in import.ScriptGlobals.Values)
                {
                    sglob.Reset(sc);
                    sglob.Write(MemoryStream);
                }
            }
        }
		void ScriptingDefinitionsToStream(Import import)
		{
			if (Head.ScriptFunctionsCount > 0)
			{
				var sfunc = new ScriptFunction();
				foreach (Import.ScriptFunction sc in import.ScriptFunctions.Values)
				{
					sfunc.Reset(sc);
					sfunc.Write(MemoryStream);
				}
			}

			if (Head.ScriptGlobalsCount > 0)
			{
				var sglob = new ScriptGlobal();
				foreach (Import.ScriptGlobal sc in import.ScriptGlobals.Values)
				{
					sglob.Reset(sc);
					sglob.Write(MemoryStream);
				}
			}
		}