AGS.Types.Script.Script C# (CSharp) Method

Script() public method

Creates a new Script which can be compiled with the AGS Script Compiler.
public Script ( string fileName, string text, bool isHeader ) : System
fileName string The script filename. If the script is internally /// generated and not stored on disk, make up a name and prefix it with /// an underscore.
text string The script itself.
isHeader bool Is this a script header or an actual script?
return System
        public Script(string fileName, string text, bool isHeader)
        {
            _fileName = fileName;
            _text = text;
            _uniqueKey = new Random().Next(Int32.MaxValue);
            _isHeader = isHeader;
        }

Same methods

Script::Script ( XmlNode node ) : System
Script::Script ( string fileName, string text, string name, string description, string author, string version, int uniqueKey, bool isHeader ) : System