Attr_ReadValue Depot::readAttr(AttrTypes_t attr, PropStream& propStream) { if(ATTR_DEPOT_ID == attr){ uint16_t _depotId; if(!propStream.GET_USHORT(_depotId)){ return ATTR_READ_ERROR; } setDepotId(_depotId); return ATTR_READ_CONTINUE; } else return Item::readAttr(attr, propStream); }
bool Depot::readAttr(AttrTypes_t attr, PropStream& propStream) { if(ATTR_DEPOT_ID == attr){ uint16_t _depotId; if(!propStream.GET_USHORT(_depotId)){ return false; } setDepotId(_depotId); return true; } else return Item::readAttr(attr, propStream); }