public Bin2dState(int type, Bin2D <IGameEntity> bin2D, int visibleRadius, Func <Vector3, bool> bin2DFilter = null) { Type = type; Bin2D = bin2D; VisibleRadius = visibleRadius; Bin2DFilter = bin2DFilter; }
public Bin2dState AddBin2D(int type, Bin2D <IGameEntity> bin2D, int visibleRadius, Func <Vector3, bool> bin2DFilter = null) { var r = new Bin2dState(type, bin2D, visibleRadius, bin2DFilter); Bin2DStates[type] = r; return(r); }