mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 05:23:13 +00:00
VarList
This commit is contained in:
@ -704,6 +704,8 @@ public class Instance
|
||||
get { return store; }
|
||||
}
|
||||
|
||||
public bool IsDestroyed { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// List of children.
|
||||
/// </summary>
|
||||
@ -1009,6 +1011,7 @@ public class Instance
|
||||
|
||||
private void Resource_OnDestroy(object sender)
|
||||
{
|
||||
IsDestroyed = true;
|
||||
Destroyed?.Invoke((IResource)sender);
|
||||
}
|
||||
}
|
||||
|
@ -914,6 +914,8 @@ public static class Warehouse
|
||||
|
||||
resource.Destroy();
|
||||
|
||||
resource.Instance = null;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user