isUsing

fun isUsing(resource: Resource): Boolean(source)

Checks if the entity is using (has allocated units) the specified resource.