Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoleToName ¶
RoleToName converts a role constant to its typical name.
func TimeFromUnix ¶
TimeFromUnix is a convenience function for converting the unix time returned from API responses into an actual golang time
Types ¶
type Role ¶
type Role int
Role is an enum describing all the roles within the game that players can have. Each player has uniquely one role.
const ( // RoleInvalid is the default value meaning that there was a bug // that caused the player to not have a role set. RoleInvalid Role = 0 // RolePlayer is the role of humans RolePlayer Role = 1 // RoleEconomyAI is the role of AI's acting in a pair to control the // fiscal policy of the team RoleEconomyAI Role = 2 // RoleMilitaryAI is the role of AI's acting in a pair to control the // defense and foreign policy of the team RoleMilitaryAI Role = 3 // RoleScienceAI is the role of AI's acting in a pair to control the // scientific policy of the team RoleScienceAI Role = 4 )
func RoleFromName ¶
Click to show internal directories.
Click to hide internal directories.