Exemple #1
0
        public static bool EventScriptIntegrity(VO_Script CurrentScript)
        {
            if (CurrentScript == null || CurrentScript.Lines.Count <= 0)
            {
                return(true);
            }

            bool IsValid = true;

            foreach (IScriptable CurrentLine in CurrentScript.Lines)
            {
                if (EventScriptIntegritySublinesCheck(CurrentLine as VO_Line) == false)
                {
                    IsValid = false;
                }
                CurrentLine.Valid = CurrentLine.IsScriptValid();
                if (CurrentLine.Valid == false)
                {
                    IsValid = false;
                }
            }

            return(IsValid);
        }