Beispiel #1
0
 public IEmptyObject CreateEmptyInstance()
 {
     if (empty == null)
     {
         empty = new IEmptyResource(this);
         Cookie cookie = GetCookie(empty.name);
         ++cookie.create;
         empty_parent = empty.CreateInstance <IEmptyObject>(null);
         loading.Add("empty", empty);
     }
     return(empty.CreateInstance <IEmptyObject>(empty_parent));
 }
Beispiel #2
0
 public T CreateEmptyInstance <T>(IRenderObject parent, params object[] args)
     where T : IRenderObject
 {
     if (empty == null)
     {
         empty = new IEmptyResource(this);
         Cookie cookie = GetCookie(empty.name);
         ++cookie.create;
         empty_parent = empty.CreateInstance <IEmptyObject>(null);
         loading.Add("empty", empty);
     }
     return(empty.CreateInstance <T>(parent, args));
 }