C# Класс Aura.Channel.Scripting.Scripts.NpcShopTab

Represents tab in an NPC shop, containing items.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Add ( Item item ) : void

Adds item.

Clear ( ) : void

Removes all items from tab.

Get ( long entityId ) : Item

Returns item by entity id, or null.

GetItems ( ) : ICollection

Returns thread-safe list of all items in the tab.

NpcShopTab ( string title, int order, bool randomizeColors, Func display ) : System

Creatures new NpcShopTab

RandomizeItemColors ( ) : void

Randomizes all item's colors.

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

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

Adds item.
public Add ( Item item ) : void
item Item
Результат void

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

Removes all items from tab.
public Clear ( ) : void
Результат void

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

Returns item by entity id, or null.
public Get ( long entityId ) : Item
entityId long
Результат Item

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

Returns thread-safe list of all items in the tab.
public GetItems ( ) : ICollection
Результат ICollection

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

Creatures new NpcShopTab
public NpcShopTab ( string title, int order, bool randomizeColors, Func display ) : System
title string Tab title display in-game.
order int
randomizeColors bool
display Func Function that determines whether tab should be displayed, set null if not used.
Результат System

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

Randomizes all item's colors.
public RandomizeItemColors ( ) : void
Результат void