C# Класс Aura.Channel.World.Entities.Creatures.CreatureTitles

Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( ushort titleId, TitleState state ) : bool

Adds title, returns true if title was added or state was changed.

ChangeTitle ( ushort titleId, bool option ) : bool

Tries to change title, returns false if anything goes wrong.

CreatureTitles ( Creature creature ) : System
Enable ( ushort titleId ) : void

Adds title as "Available" and sends xyz.

GetList ( ) : TitleState>>.ICollection

Returns new list of all titles.

IsUsable ( ushort titleId ) : bool

Returns true if creature is able to use title.

Knows ( ushort titleId ) : bool

Returns true if creature knows about title in any way.

Remove ( ushort titleId ) : bool

Removes title.

Show ( ushort titleId ) : void

Adds title as "Known" and sends xyz.

Приватные методы

Метод Описание
GetTitle ( bool option ) : ushort

Returns title or option title.

SetTitle ( ushort titleId, bool option ) : void

Sets title or option title.

SwitchStatMods ( TitleData data, bool option ) : void

Removes previous stat mods and adds new ones.

Описание методов

Add() публичный Метод

Adds title, returns true if title was added or state was changed.
public Add ( ushort titleId, TitleState state ) : bool
titleId ushort
state TitleState
Результат bool

ChangeTitle() публичный Метод

Tries to change title, returns false if anything goes wrong.
public ChangeTitle ( ushort titleId, bool option ) : bool
titleId ushort
option bool
Результат bool

CreatureTitles() публичный Метод

public CreatureTitles ( Creature creature ) : System
creature Creature
Результат System

Enable() публичный Метод

Adds title as "Available" and sends xyz.
public Enable ( ushort titleId ) : void
titleId ushort
Результат void

GetList() публичный Метод

Returns new list of all titles.
public GetList ( ) : TitleState>>.ICollection
Результат TitleState>>.ICollection

IsUsable() публичный Метод

Returns true if creature is able to use title.
public IsUsable ( ushort titleId ) : bool
titleId ushort
Результат bool

Knows() публичный Метод

Returns true if creature knows about title in any way.
public Knows ( ushort titleId ) : bool
titleId ushort
Результат bool

Remove() публичный Метод

Removes title.
public Remove ( ushort titleId ) : bool
titleId ushort
Результат bool

Show() публичный Метод

Adds title as "Known" and sends xyz.
public Show ( ushort titleId ) : void
titleId ushort
Результат void