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; }
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); }
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); }
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; }