private TileSetDefinition(int width, int depth , Vector3 boundsMin, Vector3 boundsMax , NMGenParams config , InputGeometry geom) { // Note: The constructor is private, which is why // the references are being stored. mBaseConfig = config.Clone(); mGeometry = geom; mWidth = width; mDepth = depth; mBoundsMin = boundsMin; mBoundsMax = boundsMax; }
/// <summary> /// Sets the configuration to match the provided configuration. /// </summary> /// <remarks> /// <para> /// The <paramref name="config"/> parameter will be cleaned during this operation. /// </para> /// </remarks> /// <param name="config">The configuration to match.</param> public void SetConfig(NMGenParams config) { if (config == null) return; mRoot = config.Clone(); mRoot.Clean(); UpdateLocalsFrom(mRoot); }
private IncrementalBuilder(NMGenTileParams tileConfig , NMGenParams config , NMGenAssetFlag resultOptions , InputGeometry source , ProcessorSet processors) { mConfig = config; mTileConfig = tileConfig; mGeometry = source; mProcessors = processors; mResultOptions = resultOptions; mBuildContext = new NMGenContext(tileConfig.TileX, tileConfig.TileZ, mConfig.Clone()); mTileText = string.Format("({0},{1})", tileConfig.TileX, tileConfig.TileZ); mState = NMGenState.Initialized; }