• cvet's avatar
    Item types moved to components. · 1d14e87c
    cvet authored
    Added new methods with predicate for retrieving items
    funcdef bool ItemPredicate(Item)
    Item Critter::GetItem(ItemPredicate predicate)
    const Item Critter::GetItem(ItemPredicate predicate) const
    array<Item> Critter::GetItems(ItemPredicate predicate)
    array<const Item> Critter::GetItems(ItemPredicate predicate) const
    array<Item> Map::GetItems(ItemPredicate predicate)
    array<const Item> Map::GetItems(ItemPredicate predicate) const
    array<Item> Map::GetItems(uint16 hexX, uint16 hexY, ItemPredicate predicate)
    array<const Item> Map::GetItems(uint16 hexX, uint16 hexY, ItemPredicate predicate) const
    array<Item> Map::GetItems(uint16 hexX, uint16 hexY, uint radius, ItemPredicate predicate)
    array<const Item> Map::GetItems(uint16 hexX, uint16 hexY, uint radius, ItemPredicate predicate) const
    Example: cr.GetItem(function(i){return i.Ammo != null;});
    
    Deleted methods
    Critter::GetItemsByType
    Map::GetItemsByType
    
    git-svn-id: https://xp-dev.com/svn/fonline_sdk@818 71b6ff52-6597-447a-9a87-58edf7a03249
    1d14e87c
Name
Last commit
Last update
Binaries Loading commit data...
Documentation Loading commit data...
Modules Loading commit data...
FOnline.cfg Loading commit data...
License.txt Loading commit data...
ReadMe.txt Loading commit data...