private void Awake() { _cube = transform; _mainCamera = Camera.main; _pivotCamera = _mainCamera.transform.parent; _config = ToolBox.CubeManager.Config; }
public static Cube <T> Create <T>(this CubeBuilder cubebuilder) where T : struct, IComparable { CubeConfig cube = cubebuilder.CreateConfig(); return(new Cube <T>(cube)); }
public CubeBuilder() { _root = new CubeConfig(); _storeconfig = new StorageConfigBuilder(); _datasourceconfigs = new List <DataSourceBuilder>(); _metadataconfig = new MetaDataBuilder(); _cubeSource = new CubeSourceBuilder(); }
public void Init(CubeConfig config) { _config = config; if (_audioSource != null) { _audioSource.clip = _config.Audio.ClickPlatform; } }
public DataSchema(CubeConfig config, DataSourceCollection datasources, IMemberStorage <T, Dimension <T> > dimstorage, IMemberStorage <T, Measure <T> > messtorage, IMemberStorage <T, Metric <T> > metstorage) : this(dimstorage, messtorage, metstorage) { _datasources = datasources; this.Config = config.MetaData; this.Initialize(); }
public CubeConfig RandomCube() { var cube = new CubeConfig { Scale = Configuration.Get <double>("Scale") }; for (var i = 0; i < 12; i++) { cube.Planes.Add(RandomCubePlane()); } return(cube); }
internal CubeConfig CreateConfig() { CubeConfig cube = _root; cube.Name = _name; cube.Storage = _storeconfig.Create(); cube.MetaData = _metadataconfig.Create(); cube.DataSources = new DataSourceConfigCollection(); cube.Source = _cubeSource.Create(); foreach (var item in _datasourceconfigs) { cube.DataSources.Add(item.Create()); } return(cube); }
public DataSourceCollection(CubeConfig config) : this() { this.Initialize(config.DataSources); }
public Cube(CubeConfig config) { this.Config = config; this.Init(); }
internal CubeBuilder(CubeConfig root) { _root = root; }