Nano v1.0.0
Simulating Natural Selection
ss::types Namespace Reference

Classes

struct  Cycle
 A struct holding the data for a cycle. More...
 
struct  fVec2
 
struct  SimulationInfo
 A struct holding the data for a simulation. More...
 
struct  Trait
 A struct holding the data for a trait. More...
 

Enumerations

enum class  EntityTarget { SEARCHINGFOOD , GOINGFOOD , GOINGHOME , IDLE }
 

Functions

void to_json (json &j, const ss::types::Trait &trait)
 
void from_json (const json &j, ss::types::Trait &trait)
 
void to_json (json &j, const ss::types::Cycle &cycle)
 
void from_json (const json &j, ss::types::Cycle &cycle)
 

Enumeration Type Documentation

◆ EntityTarget

enum class ss::types::EntityTarget
strong
Enumerator
SEARCHINGFOOD 
GOINGFOOD 
GOINGHOME 
IDLE 

Function Documentation

◆ from_json() [1/2]

void ss::types::from_json ( const json j,
ss::types::Cycle cycle 
)

◆ from_json() [2/2]

void ss::types::from_json ( const json j,
ss::types::Trait trait 
)

◆ to_json() [1/2]

void ss::types::to_json ( json j,
const ss::types::Cycle cycle 
)

◆ to_json() [2/2]

void ss::types::to_json ( json j,
const ss::types::Trait trait 
)