LoadedObject constructor
LoadedObject({})
Implementation
LoadedObject({
required this.size,
required this.offsetHeight,
required this.type,
List<double>? objectScale,
this.objectType = ObjectType.landscape,
this.path = '',
this.name = '',
List<Rect>? spriteLocations,
this.spriteNames,
this.show = true,
this.startingLayer = 1,
this.object
}){
_spriteLocations = spriteLocations ?? [];
this.objectScale = objectScale ?? (spriteLocations == null?[]:List<double>.filled(spriteLocations.length, 1.0));
}