C# 클래스 Aura.Channel.Scripting.Scripts.NpcShopTab

Represents tab in an NPC shop, containing items.
파일 보기 프로젝트 열기: aura-project/aura 1 사용 예제들

공개 메소드들

메소드 설명
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