hasObject method

bool hasObject(
  1. EscapeGameObject object
)

Returns whether this inventory has the specified object.

Implementation

bool hasObject(EscapeGameObject object) => hasObjectId(object.id);