private void Init(IDependencyContainer dependency) { dependency.Cache(new DownloadModel()); cell = RootMain.CreateChild <ResultCell>("Cell"); { cell.Size = new Vector2(300f, 180f); } }
private IEnumerator Init() { string testMapId = "2e8a9917-2970-437b-bc51-ca9d4bcdd670"; // Load a test map Debug.Log("Loading map"); var listener = new TaskListener <IMapset>(); MapManager.Load(new Guid(testMapId), listener); yield return(testGame.AwaitProgress(listener)); Assert.AreEqual(1, MapManager.AllMapsets.Count); Assert.AreEqual(testMapId, MapManager.AllMapsets[0].Id.ToString()); // Create meta container display. metaContainer = RootMain.CreateChild <MetaContainer>(); metaContainer.Width = 1152f; metaContainer.Height = 360f; }