Esempio n. 1
0
        public void UnRegisterViewSource(DrawMeshViewSourceBase prefab)
        {
            if (prefab == null)
            {
                ViewSourceIsNullException.Throw();
            }

            this.UnRegisterViewSource(prefab.GetSource());
        }
Esempio n. 2
0
        public void InstantiateView(DrawMeshViewSourceBase prefab, Entity entity)
        {
            if (prefab == null)
            {
                ViewSourceIsNullException.Throw();
            }

            this.InstantiateView(prefab.GetSource(), entity);
        }
Esempio n. 3
0
        public ViewId RegisterViewSource(DrawMeshViewSourceBase prefab)
        {
            if (prefab == null)
            {
                ViewSourceIsNullException.Throw();
            }

            return(this.RegisterViewSource(new UnityDrawMeshProviderInitializer(), prefab.GetSource()));
        }
Esempio n. 4
0
        public void InstantiateView(DrawMeshViewSourceBase prefab, Entity entity)
        {
            var viewSource = prefab.GetSource <TEntity>();

            this.InstantiateView(this.GetViewSourceId(viewSource), entity);
        }
Esempio n. 5
0
 public void UnRegisterViewSource(DrawMeshViewSourceBase prefab)
 {
     this.UnRegisterViewSource(prefab.GetSource <TEntity>());
 }
Esempio n. 6
0
 public ViewId RegisterViewSource(DrawMeshViewSourceBase prefab)
 {
     return(this.RegisterViewSource(new UnityDrawMeshProviderInitializer <TEntity>(), prefab.GetSource <TEntity>()));
 }
Esempio n. 7
0
 public void InstantiateView <TEntity>(DrawMeshViewSourceBase prefab, Entity entity) where TEntity : struct, IEntity
 {
     this.InstantiateView(prefab.GetSource <TEntity>(), entity);
 }
Esempio n. 8
0
 public void InstantiateView(DrawMeshViewSourceBase prefab, Entity entity)
 {
     this.InstantiateView(prefab.GetSource(), entity);
 }