예제 #1
0
        public Entity AddEntity(string name = "unnamed entity")
        {
            var e = new Entity(this, name);

            entities.Add(e);
            return(e);
        }
예제 #2
0
 public void Add(T item)
 {
     lock (_root)
     {
         _list.Add(item);
     }
 }
예제 #3
0
 public void Add(ILight light)
 {
     IncreaseVersion();
     lock (lights)
     {
         lights.Add(light);
     }
 }
예제 #4
0
 public void Add(IRenderable renderer)
 {
     IncreaseVersion();
     lock (renderers)
     {
         renderers.Add(renderer);
     }
 }