The different types of Activities are configured in an Activity Configuration File which is referenced by the ActivityManager. To configure your own game you can update this XML file (or create a new one) to define new buildings, costs, activities and more.
The configuration file uses an XML format to store the data. The XML is a serialised representation of a List of ActivityTypeData.
The following table lists the elements of the XML file.
Parameter |
Details |
Sample |
type |
Unique id of the activity. |
<type>GATHER</type>
|
durationInSeconds |
Time it takes to complete the activity (in seconds). |
<durationInSeconds>20</durationInSeconds> |
description |
Human readable description of the activity. |
<description>Gather resources.</description> |
reward |
The reward given for compelting the activity. Options are from the RewardType enum. One of: RESOURCE, GOLD, CUSTOM Note that if you use reward type CUSTOM you will have to implement your own reward mechanism by extending the AcknowledgeActivity() method of the Building.cs class. |
<reward>RESOURCE</reward> |
rewardAmount |
Amount of reward received. |
<rewardAmount>200</rewardAmount> |
0 Comments