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