public override void Apply(Image image) { Structure structure = new Structure2D(); structure.SetValues(1, 1, 1, 1, 1, 1, 1, 1, 1); ApplyErosion(image, structure); }
protected virtual void OnEnable() { building = target as Structure2D; onDestroy = serializedObject.FindProperty("onDestroy"); }
public InventoryItemSaveData(ItemData data, int amount, List <ItemSlotData> slots, Warehouse warehouse = null, Structure2D structure = null) { ID = data.ID; this.amount = amount; isLocked = data.isLocked; this.slots.AddRange(slots.ConvertAll(x => new SlotSaveData(x))); warehouseID = warehouse != null ? warehouse.EntityID : string.Empty; structureID = structure != null ? structure.EntityID : string.Empty; }