2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-03 17:58:21 +00:00
This commit is contained in:
2022-02-12 15:37:45 +03:00
parent 25260c6155
commit d41911b1ab
9 changed files with 280 additions and 77 deletions

View File

@@ -1,4 +1,5 @@
import 'dart:core';
import '../Data/DC.dart';
import '../Data/Structure.dart';
import '../Data/AutoList.dart';
@@ -21,6 +22,9 @@ import './Template/MemberTemplate.dart';
import '../Data/PropertyValue.dart';
import 'Warehouse.dart';
import '../Core/PropertyModificationInfo.dart';
class Instance extends IEventHandler {
String _name;
@@ -387,7 +391,8 @@ class Instance extends IEventHandler {
//_resource.emitArgs("modified", [pt.name, value]);
_resource.emitArgs(":${pt.name}", [value]);
_resource.emitProperty(pt.name);
_resource.emitProperty(
PropertyModificationInfo(_resource, pt, value, _instanceAge));
}
/// <summary>
@@ -542,7 +547,7 @@ class Instance extends IEventHandler {
if (customTemplate != null)
_template = customTemplate;
else
_template = Warehouse.getTemplateByType(resource.runtimeType);
_template = Warehouse.getTemplateByType(resource.runtimeType)!;
// set ages
for (int i = 0; i < _template.properties.length; i++) {