Defines the friendly name of a player.
Namespace:
SoftwareArchitects.BattleshipsAssembly: SoftwareArchitects.Battleships (in SoftwareArchitects.Battleships.dll)
Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
[AttributeUsageAttribute(AttributeTargets.Class)] public class PlayerAttribute : Attribute |
| Visual Basic (Declaration) |
|---|
<AttributeUsageAttribute(AttributeTargets.Class)> _ Public Class PlayerAttribute _ Inherits Attribute |
| Visual C++ |
|---|
[AttributeUsageAttribute(AttributeTargets::Class)] public ref class PlayerAttribute : public Attribute |
Examples
using SoftwareArchitects.Battleships; namespace Battleships { [Player(Name = "Demo Player")] public class DemoPlayer : Player { ... } }