657 {
659 {
660 Slot slot =
m_Slots.Get(index);
662
663 if (plant && !plant.IsPendingDeletion())
664 {
665 plant.UnlockFromParent();
666 plant.m_MarkForDeletion = true;
667 plant.Delete();
668 }
669
671
672 int idx = slot.GetSlotIndex();
673 int mask = 1 << idx;
674
675
678
679
682
683
686
688
691
692 SetSynchDirty();
693 }
694 }
string ToStringLen(int len)
Integer to string with fixed length, padded with zeroes.
void SetWaterQuantity(int slotIndex, int value)
ref array< ref Slot > m_Slots
static const string SLOT_SELECTION_COVERED_PREFIX
void SetFertilizerQuantity(int slotIndex, int value)
void UpdateSlotTexture(int slot_index)
This should be only called on server as the selections are synced to clients in C++.