604 {
606 {
607 Slot slot =
m_Slots.Get( index );
609
610 if ( plant )
611 {
612 plant.UnlockFromParent();
613 plant.m_MarkForDeletion = true;
615 }
616
618
619
622
623 slot.SetFertilityType(
string.
Empty);
624 slot.SetFertilizerQuantity(0);
625
626 slot.SetWateredState( eWateredState.DRY );
628
629 slot.SetWater(0);
630
631 SetSynchDirty();
632
635 }
636 }
string ToStringLen(int len)
Integer to string with fixed length, padded with zeroes.
proto native void ObjectDelete(Object obj)
ref array< ref Slot > m_Slots
static const string SLOT_SELECTION_COVERED_PREFIX
void UpdateSlotTexture(int slot_index)
proto native CGame GetGame()