Exemplo n.º 1
0
        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();
     }
 }
Exemplo n.º 3
0
 void OnClientReadyStateChanged(Project.State state)
 {
     Repaint();
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 public void UpdateFrom(Project.State state)
 {
     ProjectId  = state.ProjectId.Value;
     Name       = state.Name.Value;
     IsArchived = state.IsArchived;
 }