示例#1
0
        /// <summary>
        /// Add a particule
        /// </summary>
        /// <param name="p"></param>
        /// <returns>Added to the list</returns>
        public bool AddParticule(Particule p)
        {
            for (int i = 0; i < _particules.Length; i++)
            {
                if (_particules[i] == null)
                {
                    _particules[i] = p;
                    return(true);
                }
            }

            return(false);
        }
示例#2
0
        /// <summary>
        /// Add a particule
        /// </summary>
        /// <param name="p"></param>
        /// <returns>Added to the list</returns>
        public bool AddParticule(Particule p)
        {
            for (int i = 0; i < _particules.Length; i++)
            {
                if (_particules[i] == null)
                {
                    _particules[i] = p;
                    return true;
                }
            }

            return false;
        }