Beispiel #1
0
 public ArtObjectMaterializer(TrixelCluster missingTrixels, List<TrixelSurface> surfaces, Vector3 size)
 {
   this.missingTrixels = missingTrixels;
   ServiceHelper.InjectServices((object) this);
   this.added = new HashSet<TrixelFace>();
   this.removed = new HashSet<TrixelFace>();
   this.surfaces = surfaces ?? new List<TrixelSurface>();
   this.size = size;
 }
Beispiel #2
0
 public Trile() {
     MissingTrixels = new TrixelCluster();
     ActorSettings = new TrileActorSettings();
     Name = "Untitled";
     #if !UNITY
     Size = Vector3.One;
     #else
     Size = Vector3.one;
     #endif
     Faces = new Dictionary<FaceOrientation, CollisionType>(4);
 }
Beispiel #3
0
 public Trile()
 {
     MissingTrixels = new TrixelCluster();
     ActorSettings  = new TrileActorSettings();
     Name           = "Untitled";
     #if !UNITY
     Size = Vector3.One;
     #else
     Size = Vector3.one;
     #endif
     Faces = new Dictionary <FaceOrientation, CollisionType>(4);
 }
Beispiel #4
0
 public ArtObjectMaterializer(ArtObject artObject)
 {
   this.artObject = artObject;
   ServiceHelper.InjectServices((object) this);
   artObject.Materializer = this;
   this.size = artObject.Size;
   if (artObject.MissingTrixels == null)
     return;
   this.added = new HashSet<TrixelFace>();
   this.removed = new HashSet<TrixelFace>();
   this.missingTrixels = artObject.MissingTrixels;
   if (artObject.TrixelSurfaces == null)
     artObject.TrixelSurfaces = this.surfaces = new List<TrixelSurface>();
   else
     this.surfaces = artObject.TrixelSurfaces;
 }