private void onStructuresUnLoaded(StructureInventoryData data) { structureInventory.OnStructuresChanged -= onStructuresChanged; structureInventory = null; cachedCalculatedStructureInventory = null; }
private void onStructuresLoaded(StructureInventoryData data) { structureInventory = data; structureInventory.OnStructuresChanged += onStructuresChanged; this.onInventoryLoaded.InvokeSafe(DecorationType.Structure); }