public static ProjectDao CreateFrom(Project.State state) { var dao = new ProjectDao(); dao.UpdateFrom(state); return(dao); }
void CreateEstablishingConnectionUI(Project.State state) { rootVisualElement.Clear(); if (Project.projectIdState == Project.State.Pending) { var waitingText = new TextElement(); waitingText.text = "Waiting for connection to Unity Cloud..."; rootVisualElement.Add(waitingText); } else if (Project.projectIdState == Project.State.Invalid) { var waitingText = new TextElement(); waitingText.text = "The current project must be associated with a valid Unity Cloud project " + "to run in Unity Simulation"; rootVisualElement.Add(waitingText); } else { CreateRunInUnitySimulationUI(); } }
void OnClientReadyStateChanged(Project.State state) { Repaint(); }
public static void AssertEqual(Project.State expected, Project.State actual) { Assert.Equal(expected.ProjectId, actual.ProjectId); Assert.Equal(expected.Name, actual.Name); Assert.Equal(expected.IsArchived, actual.IsArchived); }
public void UpdateFrom(Project.State state) { ProjectId = state.ProjectId.Value; Name = state.Name.Value; IsArchived = state.IsArchived; }