Called on server side when this item's quantity is changed. Call super.OnQuantityChanged(); first when overriding this event.
См. определение в файле ItemBase.c строка 2052
2053 {
2054 SetWeightDirty();
2056
2057 if (parent)
2058 parent.OnAttachmentQuantityChangedEx(this, delta);
2059
2061 {
2063 {
2065 }
2067 {
2068 ErrorEx(
"Undefined liquid type quantity changed, please define liquid type first! Using init value.",
ErrorExSeverity.INFO);
2070 }
2071 }
2072 }
override int GetLiquidType()
override void SetLiquidType(int value, bool allow_client=false)
override float GetQuantityNormalized()
Gets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config...
Перекрестные ссылки ErrorEx, GetLiquidType(), GetLiquidTypeInit(), GetQuantityNormalized(), IsLiquidContainer(), ItemBase(), LIQUID_NONE и SetLiquidType().