RoleRestrictions

scroll.internal.support.impl.RoleRestrictions

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def addRoleRestriction[A <: AnyRef : ClassTag, B <: AnyRef : ClassTag](): Unit

Add a role restriction between the given player type A and role type B.

Add a role restriction between the given player type A and role type B.

Type parameters

A

the player type

B

the role type

Attributes

Definition Classes
override def removeRoleRestriction[A <: AnyRef : ClassTag](): Unit

Removes all role restriction for a player of type A.

Removes all role restriction for a player of type A.

Type parameters

A

the player type

Attributes

Definition Classes
override def replaceRoleRestriction[A <: AnyRef : ClassTag, B <: AnyRef : ClassTag](): Unit

Replaces a role restriction for a player of type A with a new role restriction between the given player type A and role type B.

Replaces a role restriction for a player of type A with a new role restriction between the given player type A and role type B.

Type parameters

A

the player type

B

the role type

Attributes

Definition Classes
override def validate[R <: AnyRef : ClassTag](player: AnyRef, role: R): Unit

Checks all role restriction between the given player and a role type. Will throw a RuntimeException if a restriction is violated!

Checks all role restriction between the given player and a role type. Will throw a RuntimeException if a restriction is violated!

Value parameters

player

the player instance to check

role

the role type to check

Attributes

Definition Classes