Example #1
0
 public void AddObjectForDraw(DrawableObject drawableObject)
 {
     if (!_layers.ContainsKey(drawableObject.DrawLayerType))
     {
         _layers[drawableObject.DrawLayerType] = new List<DrawableObject>();
     }
     _layers[drawableObject.DrawLayerType].Add(drawableObject);
 }
Example #2
0
 public void RemoveObjectForUpdate(DrawableObject drawableObject)
 {
     _drawableObjects.Remove(drawableObject);
 }
Example #3
0
 public void AddObjectForUpdate(DrawableObject drawableObject)
 {
     _drawableObjects.Add(drawableObject);
 }
Example #4
0
 public void RemoveObjectForDraw(DrawableObject drawableObject)
 {
     _layers[drawableObject.DrawLayerType].Remove(drawableObject);
 }