• cvet's avatar
    From engine excluded hardcoded specific item protos and item types/components. · 852b8c12
    cvet authored
    New items flags
    bool IsStatic - determine that item not generated and still in single instance for all map instances;
    bool IsWall - determine that is wall for mapper interface, contour drawing, lowest draw order, for correct lighting calculations and minimap;
    bool IsScenery - determine that is scenery for mapper interface, minimap, contour drawing and lowest draw order against other items on hex;
    bool IsCanOpen - engine handles item open/close state and affect bool Opened property (doors and containers);
    bool IsScrollBlock - instead of special hex now used this flag;
    bool IsHiddenPicture - used for hide picture on client but send item, because now IsHidden static items not send to client;
    bool IsTrigger - set this flag for dynamic or static items if you want to catch them in EventItemWalk or EventStaticItemWalk;
    bool IsHiddenInStatic - hide static items in resulted functions like GetStaticItem/GetStaticItems for performance boost.
    
    Properties
    TriggerNum Weapon.Anim1 Grid.ToMap Grid.ToMapEntire Grid.ToMapDir
    are excluded from engine.
    
    Removed following methods
    void Critter::TransitToMap(Map map, hash entire)
    Item Map::GetDoor(uint16 hexX, uint16 hexY)
    uint Map::CountEntire(hash entire) const
    array<hash> Map::GetAllEntires() const
    bool Map::GetEntireCoords(hash entire, uint skip, uint16& hexX, uint16& hexY) const
    bool Map::GetEntireCoords(hash entire, uint skip, uint16& hexX, uint16& hexY, uint8& dir) const
    uint Map::GetEntireCoords(hash entire, array<uint16> hexX, array<uint16> hexY, array<uint8> dirs) const
    bool Map::GetNearEntireCoords(hash& entire, uint16& hexX, uint16& hexY) const
    bool Map::GetNearEntireCoords(hash& entire, uint16& hexX, uint16& hexY, uint8& dir) const
    
    Renamed
    Map::GetScenery -> Map::GetStaticItem
    Map::GetSceneries -> Map::GetStaticItems
    
    git-svn-id: https://xp-dev.com/svn/fonline_sdk@820 71b6ff52-6597-447a-9a87-58edf7a03249
    852b8c12
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...