LazyBot/Assets/Scripts/Entity/EntityData.cs
/// <summary>
/// Validates values with new value.
/// </summary>
/// <param name="number">New value.</param>
/// <returns>Validated values.</returns>
Validates values with new value.
Validates values with new value .
private string[] Validate(uint number)
        {
            string[] values = (_values.Trim(new char[] { ' ', _separator }) + _separator + number.ToString()).
                Trim(new char[] { ' ', _separator }).Split(_separator).Distinct().ToArray();
            values = values.Where((item) => int.TryParse(item, out int result)).ToArray();
            return values;
        }
private string [ ] Validate ( uint number ) { string [ ] values = ( _values . Trim ( new char [ ] { ' ' , _separator } ) + _separator + number . ToString ( ) ) . Trim ( new char [ ] { ' ' , _separator } ) . Split ( _separator ) . Distinct ( ) . ToArray ( ) ; values = values . Where ( ( item ) => int . TryParse ( item , out int result ) ) . ToArray ( ) ; return values ; }
Validates values with new value.
Validates values with new value .
None
number
uint
None