* Moved editor buttons onto a Tab control, future test editors will be placed on a separate tab titled 'Testing Editors' MUDEngine: * Currency.cs - Added Default Values to Properties * Door.cs - Added initial properties and door state * ProjectInformation.cs - Removed StartingLocation enum and moved to Objects/Environment/InitialLocation.cs * Room.cs - Added initial properties * TravelDirections.cs - Added initial travel direction enum. Room Editor binds to this enum. Additional directions added in the future will automatically be added to the Room Designer. * ProjectInformation.cs - ProjectName property renamed to GameTitle. Room Designer: * User interface re-constructed and is closer to the final state. Shouldn't change much from it's current configuration.
112 lines
2.9 KiB
C#
112 lines
2.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.ComponentModel;
|
|
using System.Collections.Generic;
|
|
using System.Xml.Serialization;
|
|
using System.Xml;
|
|
|
|
//MudEngine
|
|
using MUDEngine.Objects;
|
|
using MUDEngine.Objects.Environment;
|
|
using MUDEngine.FileSystem;
|
|
|
|
namespace MUDEngine
|
|
{
|
|
[XmlInclude(typeof(StartingLocation))]
|
|
public class ProjectInformation
|
|
{
|
|
public enum TimeOfDayOptions
|
|
{
|
|
AlwaysDay,
|
|
AlwaysNight,
|
|
Transition,
|
|
}
|
|
|
|
[Category("Company Information")]
|
|
/// <summary>
|
|
/// Gets or Sets the name of the company
|
|
/// </summary>
|
|
public string CompanyName { get; set; }
|
|
|
|
[Category("Company Information")]
|
|
/// <summary>
|
|
/// Gets or Sets the companies website for this project
|
|
/// </summary>
|
|
public string Website { get; set; }
|
|
|
|
[Category("Project Settings")]
|
|
[Description("The name of the game.")]
|
|
public string GameTitle { get; set; }
|
|
|
|
[Category("Project Settings")]
|
|
/// <summary>
|
|
/// Gets or Sets if the game autosaves when the player changes locations.
|
|
/// </summary>
|
|
public bool AutoSave { get; set; }
|
|
|
|
[Category("Project Settings")]
|
|
/// <summary>
|
|
/// Gets or Sets if room names are hidden during console output.
|
|
/// </summary>
|
|
public bool HideRoomNames { get; set; }
|
|
|
|
[Category("Project Settings")]
|
|
public TimeOfDayOptions TimeOfDay
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Category("Project Settings")]
|
|
[Description("Set how long in minutes it takes to transition from day to night.")]
|
|
public int TimeOfDayTransition
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Category("Project Settings")]
|
|
[Description("Sets how long in minutes a day lasts in the game world.")]
|
|
public int DayLength
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Category("Project Information")]
|
|
public string Version { get; set; }
|
|
|
|
[Category("Project Information")]
|
|
[Description("Sets the amount that the base currency is valued at.")]
|
|
public uint BaseCurrencyAmount { get; set; }
|
|
|
|
|
|
[Category("Project Information")]
|
|
public string BaseCurrencyName { get; set; }
|
|
|
|
|
|
|
|
//TODO: Add Party support.
|
|
[Browsable(false)]
|
|
public List<Currency> CurrencyList { get; set; }
|
|
|
|
[Browsable(false)]
|
|
public string ProjectPath { get; set; }
|
|
|
|
[Browsable(false)]
|
|
public StartingLocation InitialLocation
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
[Browsable(false)]
|
|
public string Story
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
}
|