C# Class Aura.Channel.Scripting.Scripts.NpcShopTab

Represents tab in an NPC shop, containing items.
ファイルを表示 Open project: aura-project/aura Class Usage Examples

Public Methods

Method Description
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.

Method Details

Add() public method

Adds item.
public Add ( Item item ) : void
item Item
return void

Clear() public method

Removes all items from tab.
public Clear ( ) : void
return void

Get() public method

Returns item by entity id, or null.
public Get ( long entityId ) : Item
entityId long
return Item

GetItems() public method

Returns thread-safe list of all items in the tab.
public GetItems ( ) : ICollection
return ICollection

NpcShopTab() public method

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.
return System

RandomizeItemColors() public method

Randomizes all item's colors.
public RandomizeItemColors ( ) : void
return void