Esempio n. 1
0
        public void Add(Planet item)
        {
            Debug.Assert(item != null, "item is null.");

            /*
             * Color[] colorData = new Color[item.SourceRect.Width * item.SourceRect.Height];
             * item.Spritesheet.GetData<Color>(0, item.SourceRect, colorData, 0, colorData.Length);
             * Terrain.AddToTerrain((int)item.Position.X, (int)item.Position.Y, (int)item.Size.X, (int)item.Size.Y, false, true, true, colorData);
             */
            PlanetList.Add(item);
            EntityList.Add(item);
            GravityPointList.Add(item);
        }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     _planetList.Add();
 }