Description

Village.Database.Weather : DatabaseItem

Represent a weather (sunny, rain, snow) used to block certain element of the village (see Village Generation), or change the STORM System

graph BT
  Weather--> DatabaseItem

image.png


Public Member Functions

GetWeightByMonth(MonthOfYear) : float return the weight for a said month

Public Attributes

month : MonthOfYear[] In which month can we find this weather. If array is empty, means this weather can be applied in any month.
janWeight : float Chance that this weather appears instead of another for the month of January
febWeight : float Chance that this weather appears instead of another for the month of Febuary
marWeight : float Chance that this weather appears instead of another for the month of March
aprWeight : float Chance that this weather appears instead of another for the month of April
mayWeight : float Chance that this weather appears instead of another for the month of May
junWeight : float Chance that this weather appears instead of another for the month of June
julWeight : float Chance that this weather appears instead of another for the month of July
augWeight : float Chance that this weather appears instead of another for the month of August
sepWeight : float Chance that this weather appears instead of another for the month of September
octWeight : float Chance that this weather appears instead of another for the month of October
novWeight : float Chance that this weather appears instead of another for the month of November
decWeight : float Chance that this weather appears instead of another for the month of December

Member Functions Documentation


Member Data Documentation