Documentation ¶ Index ¶ type C func New(db *database.DB, o O) *C func (c *C) Tick(d time.Duration) type O Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type C ¶ type C struct { // contains filtered or unexported fields } func New ¶ func New(db *database.DB, o O) *C func (*C) Tick ¶ func (c *C) Tick(d time.Duration) Tick advances the world by one tick. During this execution, agents must not be modified by the user. type O ¶ type O struct { PoolSize int } var ( // DefaultO provides a default set of options for setting up the // collider. The values here are tailored to an N = 1000 simulation, and // is dependent on a variety of factors, e.g. CPU count. DefaultO O = O{ PoolSize: 24, } ) Source Files ¶ View all Source files collider.go Click to show internal directories. Click to hide internal directories.