1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 15:47:46 +00:00
sapphire/src/servers/sapphire_zone/Zone/HousingMgr.h

51 lines
1.7 KiB
C
Raw Normal View History

2018-11-10 19:00:13 +01:00
#ifndef SAPPHIRE_HOUSINGMGR_H
#define SAPPHIRE_HOUSINGMGR_H
#include "Forwards.h"
#include "HousingZone.h"
#include <set>
#include <unordered_map>
namespace Sapphire::Data
2018-11-10 19:00:13 +01:00
{
using HousingZonePtr = std::shared_ptr< HousingZone >;
}
2018-11-10 19:00:13 +01:00
namespace Sapphire
{
2018-11-10 19:00:13 +01:00
class HousingMgr
{
public:
HousingMgr();
virtual ~HousingMgr();
bool init();
uint32_t toLandSetId( uint16_t territoryTypeId, uint8_t wardId ) const;
Sapphire::Data::HousingZonePtr getHousingZoneByLandSetId( uint32_t id );
Sapphire::LandPtr getLandByOwnerId( uint32_t id );
2018-11-10 19:00:13 +01:00
void sendLandSignOwned( Entity::Player& player, uint8_t wardId, uint8_t plotId, uint16_t territoryTypeId );
void sendLandSignFree( Entity::Player& player, uint8_t wardId, uint8_t plotId, uint16_t territoryTypeId );
2018-11-19 09:40:44 +01:00
LandPurchaseResult purchaseLand( Entity::Player& player, uint8_t plot, uint8_t state );
void sendWardLandInfo( Entity::Player& player, uint8_t wardId, uint16_t territoryTypeId );
2018-11-17 01:16:44 +01:00
bool relinquishLand( Entity::Player& player, uint8_t plot );
2018-11-24 15:17:18 +11:00
void buildPresetEstate( Entity::Player& player, uint8_t plotNum, uint32_t presetItem );
void requestEstateRename( Entity::Player& player, uint16_t territoryTypeId, uint16_t worldId, uint8_t wardId, uint8_t plotId );
2018-11-28 21:59:28 +11:00
void requestEstateEditGreeting( Entity::Player& player, uint16_t territoryTypeId, uint16_t worldId, uint8_t wardId, uint8_t plotId );
2018-11-28 21:59:28 +11:00
void updateEstateGreeting( Entity::Player& player, const Common::LandIdent& ident, const std::string& greeting );
2018-11-29 00:19:37 +11:00
void requestEstateEditGuestAccess( Entity::Player& player, uint16_t territoryTypeId, uint16_t worldId, uint8_t wardId, uint8_t plotId );
2018-11-10 19:00:13 +01:00
};
}
#endif // SAPPHIRE_HOUSINGMGR_H