CollisionMapComponent constructor

CollisionMapComponent({
  1. String name = '',
  2. Map<String, dynamic>? properties,
  3. required Vector2 position,
  4. required Vector2 size,
  5. List<ShapeHitbox>? collisions,
})

Implementation

CollisionMapComponent({
  this.name = '',
  Map<String, dynamic>? properties,
  required Vector2 position,
  required Vector2 size,
  this.collisions,
}) {
  this.properties = properties;
  this.position = position;
  this.size = size;
}