-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import citizen types from the BIC file
This allows us to know about things like entertainers, tax collectors, etc. While here I noticed that one of the tests wasn't actually doing anything, so I fixed the path issue and added an assertion to catch similar issues in the future. #541
- Loading branch information
Showing
6 changed files
with
172 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace C7GameData { | ||
public class CitizenType { | ||
public ID Id; | ||
|
||
// Should this citizen be the default? | ||
public bool IsDefaultCitizen; | ||
|
||
// If !IsDefaultCitizen, the index of this specialist, for looking up in | ||
// popHeads.pcx. 0 is the first non-laborer row. | ||
public int SpecialistIndex; | ||
|
||
// Like "Laborer" or "Scientist" | ||
public string SingularName; | ||
|
||
public string CivilopediaEntry; | ||
|
||
// Like "Laborers" or "Scientists" | ||
public string PluralName; | ||
|
||
// If non-null, the tech needed to use this citizen type. | ||
public ID PrerequisiteTech; | ||
|
||
// The contribution, in gold per turn, that this citizen makes towards | ||
// luxuries/happiness. | ||
public int Luxuries; | ||
|
||
// The contribution, in beakers, that this citizen makes towards teching | ||
public int Research; | ||
|
||
// The contribution, in gold per turn, that this citizen makes towards | ||
// the treasury. | ||
public int Taxes; | ||
|
||
// TODO: Figure out the details of how corruption is reduced by | ||
// policemen. | ||
public int Corruption; | ||
|
||
// The contribution, in shields per turn, that this citizen makes | ||
// towards production. | ||
public int Construction; | ||
} | ||
} |
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