package tiny_libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module SenseSource

Sourcetype 'v target = {
  1. visible : bool;
  2. audible : bool;
  3. position : 'v option;
  4. age : int;
  5. seen_for : int;
}
Sourceval unknown : 'v target
Sourceval update : ?sight:float -> ?hearing:float -> distance:float -> clear:bool -> position:'v -> 'v target -> 'v target
Sourceval lost : 'v target -> bool
Sourceval forget : after:int -> 'v target -> 'v target
Sourceval nearest : (float * 'v target) list -> 'v target option
Sourceval focus : (float * 'v target) list -> 'v target option