// 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; }
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); }
// 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; } }
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; }
public LevelEditorRemotingInteractiveInterfaceManager(IGlueCommands glueCommands, IGlueState glueState) : base(9426, new InteractiveInterface(glueCommands, glueState)) { }