mirror of
https://github.com/DungeonPaper/dungeon_world_data.git
synced 2026-05-17 18:08:01 +00:00
15 lines
313 B
Dart
15 lines
313 B
Dart
import 'package:dungeon_world_data/dungeon_world_data.dart';
|
|
|
|
mixin KeyMixin {
|
|
/// This entity's unique key
|
|
abstract final String key;
|
|
|
|
String get displayName;
|
|
|
|
EntityReference get reference => EntityReference(
|
|
key: key,
|
|
name: displayName,
|
|
type: runtimeType.toString(),
|
|
);
|
|
}
|