Example #1
0
        /// <summary>
        /// TODO: replace meshPath with IMesh, when lazy mesh loading is supported.
        /// </summary>
        public MeshSpawnerItem(string meshPath, IWorld world)
        {
            this.world    = world;
            this.MeshPath = meshPath;
            Name          = "Mesh: " + Path.GetFileNameWithoutExtension(meshPath);

            placer = new WorldPlacerHelper(createNewMesh);
        }
Example #2
0
 public IslandToolItem(IWorld world, Random random)
 {
     this.world  = world;
     this.random = random;
     placer      = new WorldPlacerHelper(createNewIsland);
 }