public Entity AddEntity(string name = "unnamed entity") { var e = new Entity(this, name); entities.Add(e); return(e); }
public void Add(T item) { lock (_root) { _list.Add(item); } }
public void Add(ILight light) { IncreaseVersion(); lock (lights) { lights.Add(light); } }
public void Add(IRenderable renderer) { IncreaseVersion(); lock (renderers) { renderers.Add(renderer); } }