screpl.plugins.trigger.entry module

Data structures to log the result from condition check

screpl.plugins.trigger.entry. MaximumCircularBuffer ( elem_type ) [source]

Make circular buffer class with given element type

class screpl.plugins.trigger.entry. ResultEntry ( initval ) [source]

Bases: screpl.utils.struct.REPLStruct

result entry class

Bind more than one results with same behavior for a trigger.

static construct ( ) [source]
fields = ['start_tick', 'end_tick', 'cond_count', 'cond_bools_epd', 'cond_values_epd', 'cond_types_epd']
update ( count , bools_epd , values_epd , types_epd ) [source]

Compare the entry with new data and update

If they’re different, return 1. otherwise update tick and returns 0