예제 #1
0
 /// <summary>
 /// Remove a building from the data
 /// </summary>
 /// <param name="value">the instance to remove.</param>
 public void Remove(BatchClass value)
 {
     if (renderesData.Contains(value))
     {
         renderesData.Remove(value);
     }
 }
예제 #2
0
        /// <summary>
        /// Add a building to the data
        /// </summary>
        /// <param name="value">what building to add</param>
        /// <returns>instance of the building</returns>
        public BatchClass Add(BatchClass value)
        {
            renderesData.Add(value);

            return(renderesData[renderesData.Count - 1]);
        }