- Fixed the ScriptEngine and CommandEngine not loading Custom game commands from scripts. - BaseCharacter's Create, Initialize, Send and FlushConsole are now overridable via scripts. - Invalid commands are now printed to the player "Invalid Command." MudGame: - Added CommandSay script that adds primitive chatting support. Only players within the same Room can see the messages. - Renamed California script to WorldCalifornia - Renamed MyGame script to EarthGame. - Added Clear command script for and Say command script for showing how to build custom commands for use with the game. The commands can only be added server-side, but used client-side.
20 lines
No EOL
557 B
C#
20 lines
No EOL
557 B
C#
public class EarthGame : Game
|
|
{
|
|
public WorldCalifornia Cali;
|
|
|
|
public EarthGame()
|
|
: base()
|
|
{
|
|
GameTitle = "Planet Earth MUD";
|
|
Story = "The planet Earth reproduced in a MUD for your playing enjoyment!";
|
|
IsMultiplayer = true;
|
|
|
|
CompanyName = "Mud Designer Team";
|
|
Website = "Visit Http://MudDesigner.Codeplex.com for the latest News, Documentation and Releases.";
|
|
Version = "Example Game Version 1.0";
|
|
MaximumPlayers = 5000;
|
|
|
|
Cali = new WorldCalifornia(this);
|
|
Cali.Create();
|
|
}
|
|
} |