objectWithLocation method

ObjectsSpawned objectWithLocation(
  1. VectorDefinition location,
  2. ItemLocation asset, {
  3. String? variation,
  4. bool hidden = false,
})

Implementation

ObjectsSpawned objectWithLocation(
        VectorDefinition location, ItemLocation asset,
        {String? variation, bool hidden = false}) =>
    addObjectWithLocation(
        location, GameObject(asset, variation: variation, hidden: hidden));