C# 클래스 Aura.Channel.World.Inventory.InventoryPocketNormal

Normal inventory with a specific size.
상속: InventoryPocket
파일 보기 프로젝트 열기: aura-project/aura

보호된 프로퍼티들

프로퍼티 타입 설명
_items Item>.Dictionary
_map ].Item[
_width int

공개 메소드들

메소드 설명
Add ( Item item ) : bool
AddUnsafe ( Item item ) : void
CountItem ( bool>.Func predicate ) : int
CountItem ( int itemId ) : int
CountItem ( string tag ) : int
FillStacks ( Item item, List &changed ) : bool
GetItem ( bool>.Func predicate, StartAt startAt ) : Item
GetItem ( long id ) : Item
GetItemAt ( int x, int y ) : Item
GetItems ( bool>.Func predicate, StartAt startAt ) : List
Has ( Item item ) : bool
HasSpace ( Item item ) : bool
InventoryPocketNormal ( Pocket pocket, int width, int height ) : System
Remove ( Item item ) : bool
Remove ( int itemId, int amount, List &changed ) : int
TestMap ( ) : void
TryAdd ( Item newItem, byte targetX, byte targetY, Item &collidingItem ) : bool

보호된 메소드들

메소드 설명
AddToMap ( Item item ) : void
ClearFromMap ( Item item ) : void
GetCollidingItems ( uint targetX, uint targetY, Item item ) : List
HasCollisions ( uint targetX, uint targetY, Item item ) : bool

메소드 상세

Add() 공개 메소드

public Add ( Item item ) : bool
item Item
리턴 bool

AddToMap() 보호된 메소드

protected AddToMap ( Item item ) : void
item Item
리턴 void

AddUnsafe() 공개 메소드

public AddUnsafe ( Item item ) : void
item Item
리턴 void

ClearFromMap() 보호된 메소드

protected ClearFromMap ( Item item ) : void
item Item
리턴 void

CountItem() 공개 메소드

public CountItem ( bool>.Func predicate ) : int
predicate bool>.Func
리턴 int

CountItem() 공개 메소드

public CountItem ( int itemId ) : int
itemId int
리턴 int

CountItem() 공개 메소드

public CountItem ( string tag ) : int
tag string
리턴 int

FillStacks() 공개 메소드

public FillStacks ( Item item, List &changed ) : bool
item Item
changed List
리턴 bool

GetCollidingItems() 보호된 메소드

protected GetCollidingItems ( uint targetX, uint targetY, Item item ) : List
targetX uint
targetY uint
item Item
리턴 List

GetItem() 공개 메소드

public GetItem ( bool>.Func predicate, StartAt startAt ) : Item
predicate bool>.Func
startAt StartAt
리턴 Item

GetItem() 공개 메소드

public GetItem ( long id ) : Item
id long
리턴 Item

GetItemAt() 공개 메소드

public GetItemAt ( int x, int y ) : Item
x int
y int
리턴 Item

GetItems() 공개 메소드

public GetItems ( bool>.Func predicate, StartAt startAt ) : List
predicate bool>.Func
startAt StartAt
리턴 List

Has() 공개 메소드

public Has ( Item item ) : bool
item Item
리턴 bool

HasCollisions() 보호된 메소드

protected HasCollisions ( uint targetX, uint targetY, Item item ) : bool
targetX uint
targetY uint
item Item
리턴 bool

HasSpace() 공개 메소드

public HasSpace ( Item item ) : bool
item Item
리턴 bool

InventoryPocketNormal() 공개 메소드

public InventoryPocketNormal ( Pocket pocket, int width, int height ) : System
pocket Pocket
width int
height int
리턴 System

Remove() 공개 메소드

public Remove ( Item item ) : bool
item Item
리턴 bool

Remove() 공개 메소드

public Remove ( int itemId, int amount, List &changed ) : int
itemId int
amount int
changed List
리턴 int

TestMap() 공개 메소드

public TestMap ( ) : void
리턴 void

TryAdd() 공개 메소드

public TryAdd ( Item newItem, byte targetX, byte targetY, Item &collidingItem ) : bool
newItem Item
targetX byte
targetY byte
collidingItem Item
리턴 bool

프로퍼티 상세

_items 보호되어 있는 프로퍼티

protected Dictionary _items
리턴 Item>.Dictionary

_map 보호되어 있는 프로퍼티

protected Item[,] _map
리턴 ].Item[

_width 보호되어 있는 프로퍼티

protected int _width
리턴 int