LazyBot/Assets/Scripts/Entity/EntityData.cs
/// <summary>
/// Bakes possible values in integer mask.
/// </summary>
/// <returns>Integer mask.</returns>
Bakes possible values in integer mask.
Bakes possible values in integer mask .
public ulong Bake()
        {
            string[] valuesS = Validate();
            _values = string.Join(_separator.ToString(), valuesS);
            _mask = 0;
            int[] valuesI = Array.ConvertAll<string, int>(valuesS, int.Parse);
            for (int i = 0; i < valuesI.Length; i++)
            {
                _mask |= (uint)Mathf.Pow(2, valuesI[i]);
            }
            return _mask;
        }
public ulong Bake ( ) { string [ ] valuesS = Validate ( ) ; _values = string . Join ( _separator . ToString ( ) , valuesS ) ; _mask = 0 ; int [ ] valuesI = Array . ConvertAll < string , int > ( valuesS , int . Parse ) ; for ( int i = 0 ; i < valuesI . Length ; i ++ ) { _mask |= ( uint ) Mathf . Pow ( 2 , valuesI [ i ] ) ; } return _mask ; }
Bakes possible values in integer mask.
Bakes possible values in integer mask .
None