Family
Inhabitants are spawned into a family. A family chooses a random surname from a text file of surnames and starts filling family members in. There are only two types of family in the family unlike the previous implementation of 3. The two types are Parents and Children. There could only be two parents into the family but sex would not be a factor unlike the previous implementation where there is a Father, a Mother and children. The inhabitant's role is displayed on a text GUI at the top left of the screen.
Random Name Generation
This random name generation is just a very simple implementation just like the previous one. I have a text file of the most common unisex names from the internet and when an inhabitant is created, the game would select a random name from this file. The name selected a long with the surname from the family of the inhabitant would make up its full name. The full name is displayed on a text GUI at the top left of the screen.
Clock
The clock implementation is the same as the previous one. It stores the year, month, day and hour. The real life seconds per in game hour could be set in the Unity editor for easier adjustments in the future. That goes the same with the hour per day, day per month and month per year. currently I made the seconds per hour set to 2 real life seconds per 1 in game hour. The year, month, day and hour are displayed on a text GUI at the top left of the screen.
0 comments