forked from multitheftauto/mtasa-blue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/multitheftauto/mtasa-blue
- Loading branch information
Showing
113 changed files
with
2,317 additions
and
1,375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/***************************************************************************** | ||
* | ||
* PROJECT: Multi Theft Auto v1.0 | ||
* LICENSE: See LICENSE in the top level directory | ||
* FILE: game_sa/CBuildingRemovalSA.h | ||
* PURPOSE: Header file for building removal class | ||
* | ||
* Multi Theft Auto is available from http://www.multitheftauto.com/ | ||
* | ||
*****************************************************************************/ | ||
|
||
#pragma once | ||
|
||
#include <CVector.h> | ||
#include <CVector2D.h> | ||
|
||
#include <game/CBuildingRemoval.h> | ||
|
||
class CBuildingRemovalSA : public CBuildingRemoval | ||
{ | ||
public: | ||
CBuildingRemovalSA(); | ||
|
||
SBuildingRemoval* GetBuildingRemoval(CEntitySAInterface* pInterface) override; | ||
|
||
void RemoveBuilding(uint16_t usModelToRemove, float fDistance, float fX, float fY, float fZ, char cInterior, size_t* pOutAmount = NULL) override; | ||
bool RestoreBuilding(uint16_t usModelToRestore, float fDistance, float fX, float fY, float fZ, char cInterior, size_t* pOutAmount = NULL) override; | ||
bool IsRemovedModelInRadius(SIPLInst* pInst) override; | ||
bool IsModelRemoved(uint16_t modelID) override; | ||
void ClearRemovedBuildingLists(uint* pOutAmount = NULL) override; | ||
void AddDataBuilding(CEntitySAInterface* pInterface) override; | ||
void RemoveWorldBuildingFromLists(CEntitySAInterface* pInterface) override; | ||
void AddBinaryBuilding(CEntitySAInterface* pInterface) override; | ||
bool IsObjectRemoved(CEntitySAInterface* pInterface) override; | ||
bool IsDataModelRemoved(uint16_t usModelID) override; | ||
bool IsEntityRemoved(CEntitySAInterface* pInterface) override; | ||
void DropCaches(); | ||
|
||
private: | ||
std::multimap<uint16_t, SBuildingRemoval*>* m_pBuildingRemovals; | ||
std::multimap<uint16_t, sDataBuildingRemovalItem*>* m_pDataBuildings; | ||
std::multimap<uint16_t, sBuildingRemovalItem*>* m_pBinaryBuildings; | ||
std::map<DWORD, bool> m_pRemovedEntities; | ||
std::map<DWORD, bool> m_pAddedEntities; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.