Added TerrainTypes enum for future adjustments made to Characters based off of the kind of terrain they're on.
Added Room.Terrain property for setting the Rooms terrain.
This commit is contained in:
parent
81f2ae91c0
commit
b23f84e509
3 changed files with 23 additions and 0 deletions
|
@ -94,6 +94,8 @@ namespace MudEngine.GameObjects.Environment
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected TerrainTypes Terrain { get; set; }
|
||||||
|
|
||||||
public Room(Game game) :base(game)
|
public Room(Game game) :base(game)
|
||||||
{
|
{
|
||||||
Doorways = new List<Door>();
|
Doorways = new List<Door>();
|
||||||
|
|
20
MudEngine/GameObjects/Environment/TerrainType.cs
Normal file
20
MudEngine/GameObjects/Environment/TerrainType.cs
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace MudEngine.GameObjects.Environment
|
||||||
|
{
|
||||||
|
public enum TerrainTypes
|
||||||
|
{
|
||||||
|
Stone,
|
||||||
|
Dirt,
|
||||||
|
Grass,
|
||||||
|
Rock,
|
||||||
|
Wood,
|
||||||
|
Water,
|
||||||
|
Air,
|
||||||
|
Mud,
|
||||||
|
Other,
|
||||||
|
}
|
||||||
|
}
|
|
@ -84,6 +84,7 @@
|
||||||
<Compile Include="GameObjects\Environment\Realm.cs" />
|
<Compile Include="GameObjects\Environment\Realm.cs" />
|
||||||
<Compile Include="GameObjects\Environment\Room.cs" />
|
<Compile Include="GameObjects\Environment\Room.cs" />
|
||||||
<Compile Include="GameObjects\Environment\StartingLocation.cs" />
|
<Compile Include="GameObjects\Environment\StartingLocation.cs" />
|
||||||
|
<Compile Include="GameObjects\Environment\TerrainType.cs" />
|
||||||
<Compile Include="GameObjects\Environment\TravelDirections.cs" />
|
<Compile Include="GameObjects\Environment\TravelDirections.cs" />
|
||||||
<Compile Include="GameObjects\Environment\Zone.cs" />
|
<Compile Include="GameObjects\Environment\Zone.cs" />
|
||||||
<Compile Include="GameObjects\Items\BaseItem.cs" />
|
<Compile Include="GameObjects\Items\BaseItem.cs" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue