Esempio n. 1
0
        public void SaveToData()
        {
            //' ' and '=' are not allowed by max, ';' is our data separator
            if (name.Contains(' ') || name.Contains('=') || name.Contains(s_PropertySeparator))
            {
                throw new FormatException("Invalid character(s) in animation Name: " + name + ". Spaces, equal signs and the separator '" + s_PropertySeparator + "' are not allowed.");
            }

            string        nodes         = string.Join(s_PropertySeparator.ToString(), nodeHandles);
            StringBuilder stringBuilder = new StringBuilder();

            stringBuilder.AppendFormat(s_PropertyFormat, name, ticksStart, ticksEnd, nodes);

            Loader.SetStringProperty(GetPropertyName(), stringBuilder.ToString());

            IsDirty = false;
        }