WIP #183 Custom names and icons
This commit is contained in:
14
lib/entity_class/entity_wrapper.class.dart
Normal file
14
lib/entity_class/entity_wrapper.class.dart
Normal file
@ -0,0 +1,14 @@
|
||||
part of '../main.dart';
|
||||
|
||||
class EntityWrapper {
|
||||
|
||||
String displayName;
|
||||
String icon;
|
||||
Entity entity;
|
||||
|
||||
EntityWrapper({this.entity, String icon, String displayName}) {
|
||||
this.icon = icon ?? entity.icon;
|
||||
this.displayName = displayName ?? entity.displayName;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user