Called on server side when this item's quantity is changed. Call super.OnQuantityChanged(); first when overriding this event.
См. определение в файле ItemBase.c строка 1987
1988 {
1989 SetWeightDirty();
1991
1992 if (parent)
1993 parent.OnAttachmentQuantityChangedEx(this, delta);
1994
1996 {
1998 {
2000 }
2002 {
2003 ErrorEx(
"Undefined liquid type quantity changed, please define liquid type first! Using init value.",
ErrorExSeverity.INFO);
2005 }
2006 }
2007 }
override float GetQuantityNormalized()
Gets quantity in normalized 0..1 form between the item's Min a Max values as defined by item's config...
override int GetLiquidType()
override void SetLiquidType(int value, bool allow_client=false)
Перекрестные ссылки ErrorEx, GetLiquidType(), GetLiquidTypeInit(), GetQuantityNormalized(), IsLiquidContainer(), LIQUID_NONE и SetLiquidType().
Используется в SetQuantity().