Options
All
  • Public
  • Public/Protected
  • All
Menu

The location model specifies how a nation can have a location with different properties. For instance, a nation does not only want to show that it has a nation building, but maybe show that it also has a location for having lunch for instance.

One important thing is that the activity level is operated upon each location that a nation specifies to use. The activity level updates dynamically by reading from what estimation of people there are (though a counter accessed by a staff/admin in the admin interface) and the max capacity that is set on the location

For e.g:

// max_capacity is 200
// estimated_people_count for this example is 100
// activity level is 0.5 => Medium (+- High, Low)

 {
     "change": 80
 }

// estimated_people_count becomes 180
// activity rises up to VeryHigh
//

Index

Classes

Generated using TypeDoc