Exemplo n.º 1
0
        // STOP!  If adding here be sure to add to SetFrom too

        public void SetFrom(IGlueState glueState)
        {
            this.CurrentElement = glueState.CurrentElement;

            this.CurrentTreeNode = glueState.CurrentTreeNode;

            this.CurrentEntitySave = glueState.CurrentEntitySave;

            this.CurrentScreenSave = glueState.CurrentScreenSave;

            this.CurrentNamedObjectSave = glueState.CurrentNamedObjectSave;

            this.CurrentEventResponseSave = glueState.CurrentEventResponseSave;

            this.CurrentCustomVariable = glueState.CurrentCustomVariable;

            this.CurrentStateSave = glueState.CurrentStateSave;

            this.CurrentStateSaveCategory = glueState.CurrentStateSaveCategory;

            this.CurrentReferencedFileSave = glueState.CurrentReferencedFileSave;

            this.CurrentGlueProject = glueState.CurrentGlueProject;

            this.ContentDirectory = glueState.ContentDirectory;

            this.CurrentMainProject = glueState.CurrentMainProject;

            this.CurrentMainContentProject = glueState.CurrentMainContentProject;

            this.ProjectNamespace = glueState.ProjectNamespace;
        }
Exemplo n.º 2
0
        public bool UpdateToState(IGlueState glueState)
        {
            bool didInstanceChange = glueState.CurrentNamedObjectSave != this.CurrentNamedObject;

            mGlueStateSnapshot.SetFrom(glueState);

            mInstance = glueState.CurrentNamedObjectSave;
            UpdateIncludedAndExcluded(mInstance as NamedObjectSave);

            base.Instance = mInstance;


            return(didInstanceChange);
        }
Exemplo n.º 3
0
        // STOP!  If adding here be sure to add to SetFrom too

        public void SetFrom(IGlueState glueState)
        {
            this.CurrentElement = glueState.CurrentElement;

#if GLUE
            this.CurrentTreeNode = glueState.CurrentTreeNode;
#endif

            this.CurrentEntitySave = glueState.CurrentEntitySave;

            this.CurrentScreenSave = glueState.CurrentScreenSave;

            this.CurrentNamedObjectSave = glueState.CurrentNamedObjectSave;

            this.CurrentEventResponseSave = glueState.CurrentEventResponseSave;

            this.CurrentCustomVariable = glueState.CurrentCustomVariable;

            this.CurrentStateSave = glueState.CurrentStateSave;

            this.CurrentStateSaveCategory = glueState.CurrentStateSaveCategory;

            this.CurrentReferencedFileSave = glueState.CurrentReferencedFileSave;

            this.CurrentGlueProject = glueState.CurrentGlueProject;

            // do we need to foreach it instead?
            this.SyncedProjects = glueState.SyncedProjects;

            this.ContentDirectory = glueState.ContentDirectory;

            this.CurrentMainProject = glueState.CurrentMainProject;

            this.CurrentMainContentProject = glueState.CurrentMainContentProject;

            this.ProjectNamespace = glueState.ProjectNamespace;

            if (glueState.CurrentGlueProject != null)
            {
                this.ProjectSpecificSettingsFolder = glueState.ProjectSpecificSettingsFolder;

                this.CurrentGlueProjectDirectory = glueState.CurrentGlueProjectDirectory;
            }
        }
Exemplo n.º 4
0
 public GlueViewRemotingInteractiveInterfaceManager(IGlueCommands glueCommands, IGlueState glueState)
     : base(8686, new InteractiveInterface(glueCommands, glueState))
 {
 }
        public bool UpdateToState(IGlueState glueState)
        {
            bool didInstanceChange = glueState.CurrentNamedObjectSave != this.CurrentNamedObject;

            mGlueStateSnapshot.SetFrom(glueState);

            mInstance = glueState.CurrentNamedObjectSave;
            UpdateIncludedAndExcluded(mInstance as NamedObjectSave);

            base.Instance = mInstance;


            return didInstanceChange;
        }
Exemplo n.º 6
0
 public InteractiveInterface(IGlueCommands glueCommands, IGlueState glueState)
 {
     _glueCommands = glueCommands;
     _glueState = glueState;
 }
Exemplo n.º 7
0
 public InteractiveInterface(IGlueCommands glueCommands, IGlueState glueState)
 {
     _glueCommands = glueCommands;
     _glueState    = glueState;
 }
Exemplo n.º 8
0
 public LevelEditorRemotingInteractiveInterfaceManager(IGlueCommands glueCommands, IGlueState glueState)
     : base(9426, new InteractiveInterface(glueCommands, glueState))
 {
 }
Exemplo n.º 9
0
        // STOP!  If adding here be sure to add to SetFrom too

        public void SetFrom(IGlueState glueState)
        {
            this.CurrentElement = glueState.CurrentElement;

            this.CurrentTreeNode = glueState.CurrentTreeNode;

            this.CurrentEntitySave = glueState.CurrentEntitySave;

            this.CurrentScreenSave = glueState.CurrentScreenSave;

            this.CurrentNamedObjectSave = glueState.CurrentNamedObjectSave;

            this.CurrentEventResponseSave = glueState.CurrentEventResponseSave;

            this.CurrentCustomVariable = glueState.CurrentCustomVariable;

            this.CurrentStateSave = glueState.CurrentStateSave;

            this.CurrentStateSaveCategory = glueState.CurrentStateSaveCategory;

            this.CurrentReferencedFileSave = glueState.CurrentReferencedFileSave;

            this.CurrentGlueProject = glueState.CurrentGlueProject;

            this.ContentDirectory = glueState.ContentDirectory;

            this.CurrentMainProject = glueState.CurrentMainProject;

            this.CurrentMainContentProject = glueState.CurrentMainContentProject;

            this.ProjectNamespace = glueState.ProjectNamespace;
        }