Room Designer:

- Cleaned up un-used code
 - Removed un-used Fields
 - Rooms can now be saved via the UI
 - Rooms can be loaded via a command line argument "room=Room Name.room"
This commit is contained in:
Scionwest_cp 2009-11-25 21:25:01 -08:00
parent 1cc477f23c
commit dae777bc24
2 changed files with 1 additions and 11 deletions

View file

@ -184,7 +184,6 @@
this.propertyRoom.Name = "propertyRoom";
this.propertyRoom.Size = new System.Drawing.Size(230, 430);
this.propertyRoom.TabIndex = 3;
this.propertyRoom.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyRoom_PropertyValueChanged);
//
// containerDesigner
//

View file

@ -25,8 +25,6 @@ namespace RoomDesigner
//Scripting engine and it's components.
ManagedScripting.ScriptingEngine _ScriptEngine;
ManagedScripting.CodeBuilding.ClassGenerator _CurrentClass;
ManagedScripting.CodeBuilding.MethodSetup _CurrentCodeBlock;
//Collection of plugins from within the 'plugins' folder
List<System.Reflection.Assembly> _Plugins;
@ -310,9 +308,7 @@ namespace RoomDesigner
_CurrentRoom = new Room();
_CurrentDoor = new Door(AvailableTravelDirections.None);
_CurrentClass = new ManagedScripting.CodeBuilding.ClassGenerator();
_CurrentCodeBlock = new ManagedScripting.CodeBuilding.MethodSetup();
propertyDoor.SelectedObject = null;
propertyRoom.SelectedObject = _CurrentRoom;
}
@ -341,10 +337,5 @@ namespace RoomDesigner
txtScript.Text = _CurrentRoom.Script;
}
}
private void propertyRoom_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
{
//propertyRoom.Refresh();
}
}
}