mirror of
https://github.com/esiur/esiur-dart.git
synced 2025-05-06 20:02:59 +00:00
enum
This commit is contained in:
parent
9cb6e3e5b8
commit
f3e75f3796
@ -122,7 +122,7 @@ class DataSerializer {
|
|||||||
return DataSerializerComposeResults(
|
return DataSerializerComposeResults(
|
||||||
TransmissionTypeIdentifier.Null, DC(0));
|
TransmissionTypeIdentifier.Null, DC(0));
|
||||||
|
|
||||||
var cts = template.constants.where((x) => x.value == value);
|
var cts = template.constants.where((x) => x.value == value.value);
|
||||||
|
|
||||||
if (cts.isEmpty)
|
if (cts.isEmpty)
|
||||||
return DataSerializerComposeResults(
|
return DataSerializerComposeResults(
|
||||||
|
@ -45,6 +45,10 @@ class Instance extends IEventHandler {
|
|||||||
|
|
||||||
int _id;
|
int _id;
|
||||||
|
|
||||||
|
bool _isDestroyed;
|
||||||
|
|
||||||
|
bool get isDestroyed => _isDestroyed;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Instance attributes are custom properties associated with the instance, a place to store information by IStore.
|
/// Instance attributes are custom properties associated with the instance, a place to store information by IStore.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -619,6 +623,7 @@ class Instance extends IEventHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void resource_OnDestroy(sender) {
|
void resource_OnDestroy(sender) {
|
||||||
|
_isDestroyed = true;
|
||||||
emitArgs("resourceDestroyed", [sender]);
|
emitArgs("resourceDestroyed", [sender]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -670,6 +670,8 @@ class Warehouse {
|
|||||||
|
|
||||||
resource.destroy();
|
resource.destroy();
|
||||||
|
|
||||||
|
resource.instance = null;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user