Beispiel #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;
        }
Beispiel #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);
        }
Beispiel #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;
            }
        }
Beispiel #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;
        }
 public InteractiveInterface(IGlueCommands glueCommands, IGlueState glueState)
 {
     _glueCommands = glueCommands;
     _glueState = glueState;
 }
Beispiel #7
0
 public InteractiveInterface(IGlueCommands glueCommands, IGlueState glueState)
 {
     _glueCommands = glueCommands;
     _glueState    = glueState;
 }
Beispiel #8
0
 public LevelEditorRemotingInteractiveInterfaceManager(IGlueCommands glueCommands, IGlueState glueState)
     : base(9426, new InteractiveInterface(glueCommands, glueState))
 {
 }
Beispiel #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;
        }