branch sync, Constructable can now have an accesslevel defined.
This commit is contained in:
parent
fede41b710
commit
5d78b17be1
7 changed files with 52 additions and 11 deletions
|
|
@ -19,8 +19,6 @@
|
|||
***************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Server
|
||||
|
|
@ -158,8 +156,21 @@ namespace Server
|
|||
[AttributeUsage( AttributeTargets.Constructor )]
|
||||
public class ConstructableAttribute : Attribute
|
||||
{
|
||||
public ConstructableAttribute()
|
||||
private AccessLevel m_AccessLevel;
|
||||
|
||||
public AccessLevel AccessLevel
|
||||
{
|
||||
get { return m_AccessLevel; }
|
||||
set { m_AccessLevel = value; }
|
||||
}
|
||||
|
||||
public ConstructableAttribute() : this( AccessLevel.Player ) //Lowest accesslevel for current functionality (Level determined by access to [add)
|
||||
{
|
||||
}
|
||||
|
||||
public ConstructableAttribute( AccessLevel accessLevel )
|
||||
{
|
||||
m_AccessLevel = accessLevel;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue