document traits with generic names
This commit is contained in:
@@ -19,6 +19,7 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.RA.Move
|
namespace OpenRA.Mods.RA.Move
|
||||||
{
|
{
|
||||||
|
[Desc("Calculates routes for mobile units based on the A* search algorithm.", " Attach this to the world actor.")]
|
||||||
public class PathFinderInfo : ITraitInfo
|
public class PathFinderInfo : ITraitInfo
|
||||||
{
|
{
|
||||||
public object Create(ActorInitializer init) { return new PathFinder(init.world); }
|
public object Create(ActorInitializer init) { return new PathFinder(init.world); }
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
{
|
{
|
||||||
|
[Desc("Allows to execute build orders.", " Attach this to the player actor.")]
|
||||||
class PlaceBuildingInfo : TraitInfo<PlaceBuilding> { }
|
class PlaceBuildingInfo : TraitInfo<PlaceBuilding> { }
|
||||||
|
|
||||||
class PlaceBuilding : IResolveOrder
|
class PlaceBuilding : IResolveOrder
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
{
|
{
|
||||||
|
[Desc("Manages build limits and pre-requisites.", " Attach this to the player actor.")]
|
||||||
public class TechTreeInfo : ITraitInfo
|
public class TechTreeInfo : ITraitInfo
|
||||||
{
|
{
|
||||||
public object Create(ActorInitializer init) { return new TechTree(init); }
|
public object Create(ActorInitializer init) { return new TechTree(init); }
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.RA
|
namespace OpenRA.Mods.RA
|
||||||
{
|
{
|
||||||
class ReservableInfo : TraitInfo<Reservable> {}
|
[Desc("Reserve landing places for aircraft.")]
|
||||||
|
class ReservableInfo : TraitInfo<Reservable> { }
|
||||||
|
|
||||||
public class Reservable : ITick, INotifyKilled, INotifyCapture, INotifySold
|
public class Reservable : ITick, INotifyKilled, INotifyCapture, INotifySold
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user