* Added Attributes namespace to hold custom attributes. * UnusableAttribute.cs - Added to tag classes as unusable by the editors regardless if they inherit from BaseObject or not. * BaseObject.cs - Contains OnEnter and OnExit methods * InitialLocation.cs - UnusableAttribute tag applied. Room Designer: * frmMain.cs - Additional Script UI design. * frmMain.cs - Added plugin support. Plugin support is being tested. Room Designer is the testbed. It will ultimately end up inside MUDEngine.Engine. Curently (if ROOT/Plugins exists) loads all .dll files contained within the plugin directory. All classes inheriting from BaseObject and not tagged with the UnusableAttribute attribute automatically get added to the script editor.
42 lines
758 B
C#
42 lines
758 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
using System.ComponentModel;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MUDEngine.Objects
|
|
{
|
|
public class BaseObject
|
|
{
|
|
[Category("Object Setup")]
|
|
public string Name
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Category("Object Setup")]
|
|
public string Description
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Browsable(false)]
|
|
public ManagedScripting.CodeBuilding.ClassGenerator Script
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public void OnEnter()
|
|
{
|
|
}
|
|
|
|
public void OnExit()
|
|
{
|
|
}
|
|
}
|
|
}
|