-
-
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.
Add a cIBuildingStyleInfo2 interface
This interface extends cIBuildingStyleInfo with a method to get the occupant building style list with a user-specified separator, and adds a method to query if the occupant is marked as wall-to-wall.
- Loading branch information
1 parent
95982a5
commit e96abfd
Showing
9 changed files
with
116 additions
and
33 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//////////////////////////////////////////////////////////////////////////// | ||
// | ||
// This file is part of sc4-more-building-styles, a DLL Plugin for | ||
// SimCity 4 that adds support for more building styles. | ||
// | ||
// Copyright (c) 2024 Nicholas Hayes | ||
// | ||
// This file is licensed under terms of the MIT License. | ||
// See LICENSE.txt for more information. | ||
// | ||
//////////////////////////////////////////////////////////////////////////// | ||
|
||
#pragma once | ||
#include "cIBuildingStyleInfo.h" | ||
|
||
static const uint32_t GZIID_cIBuildingStyleInfo2 = 0xC6C058F1; | ||
|
||
class cIBuildingStyleInfo2 : public cIBuildingStyleInfo | ||
{ | ||
public: | ||
/** | ||
* @brief Gets a list of the style names for the specified building. | ||
* @param pBuildingOccupant A pointer to the building occupant. | ||
* @param destination The destination string. | ||
* @param separator The separator between items in the list. | ||
* @return true on success; otherwise, false. | ||
*/ | ||
virtual bool GetBuildingStyleNamesEx( | ||
cISC4Occupant* pBuildingOccupant, | ||
cIGZString& destination, | ||
cIGZString const& separator) const = 0; | ||
|
||
/** | ||
* @brief Gets a value indicating whether the specified building is wall to wall. | ||
* @param pBuildingOccupant A pointer to the building occupant. | ||
* @return true if the specified building is wall to wall; otherwise, false. | ||
*/ | ||
virtual bool IsWallToWall(cISC4Occupant* pBuildingOccupant) const = 0; | ||
}; |