C# Class Aura.Channel.World.Inventory.InventoryPocketNormal

Normal inventory with a specific size.
Inheritance: InventoryPocket
Afficher le fichier Open project: aura-project/aura

Protected Properties

Свойство Type Description
_items Item>.Dictionary
_map ].Item[
_width int

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
AddToMap ( Item item ) : void
ClearFromMap ( Item item ) : void
GetCollidingItems ( uint targetX, uint targetY, Item item ) : List
HasCollisions ( uint targetX, uint targetY, Item item ) : bool

Method Details

Add() public méthode

public Add ( Item item ) : bool
item Item
Résultat bool

AddToMap() protected méthode

protected AddToMap ( Item item ) : void
item Item
Résultat void

AddUnsafe() public méthode

public AddUnsafe ( Item item ) : void
item Item
Résultat void

ClearFromMap() protected méthode

protected ClearFromMap ( Item item ) : void
item Item
Résultat void

CountItem() public méthode

public CountItem ( bool>.Func predicate ) : int
predicate bool>.Func
Résultat int

CountItem() public méthode

public CountItem ( int itemId ) : int
itemId int
Résultat int

CountItem() public méthode

public CountItem ( string tag ) : int
tag string
Résultat int

FillStacks() public méthode

public FillStacks ( Item item, List &changed ) : bool
item Item
changed List
Résultat bool

GetCollidingItems() protected méthode

protected GetCollidingItems ( uint targetX, uint targetY, Item item ) : List
targetX uint
targetY uint
item Item
Résultat List

GetItem() public méthode

public GetItem ( bool>.Func predicate, StartAt startAt ) : Item
predicate bool>.Func
startAt StartAt
Résultat Item

GetItem() public méthode

public GetItem ( long id ) : Item
id long
Résultat Item

GetItemAt() public méthode

public GetItemAt ( int x, int y ) : Item
x int
y int
Résultat Item

GetItems() public méthode

public GetItems ( bool>.Func predicate, StartAt startAt ) : List
predicate bool>.Func
startAt StartAt
Résultat List

Has() public méthode

public Has ( Item item ) : bool
item Item
Résultat bool

HasCollisions() protected méthode

protected HasCollisions ( uint targetX, uint targetY, Item item ) : bool
targetX uint
targetY uint
item Item
Résultat bool

HasSpace() public méthode

public HasSpace ( Item item ) : bool
item Item
Résultat bool

InventoryPocketNormal() public méthode

public InventoryPocketNormal ( Pocket pocket, int width, int height ) : System
pocket Pocket
width int
height int
Résultat System

Remove() public méthode

public Remove ( Item item ) : bool
item Item
Résultat bool

Remove() public méthode

public Remove ( int itemId, int amount, List &changed ) : int
itemId int
amount int
changed List
Résultat int

TestMap() public méthode

public TestMap ( ) : void
Résultat void

TryAdd() public méthode

public TryAdd ( Item newItem, byte targetX, byte targetY, Item &collidingItem ) : bool
newItem Item
targetX byte
targetY byte
collidingItem Item
Résultat bool

Property Details

_items protected_oe property

protected Dictionary _items
Résultat Item>.Dictionary

_map protected_oe property

protected Item[,] _map
Résultat ].Item[

_width protected_oe property

protected int _width
Résultat int