Called on server side when this item's quantity is changed. Call super.OnQuantityChanged(); first when overriding this event.
См. определение в файле ItemBase.c строка 2025
2026 {
2027 SetWeightDirty();
2029
2030 if (parent)
2031 parent.OnAttachmentQuantityChangedEx(this, delta);
2032
2034 {
2036 {
2038 }
2040 {
2041 ErrorEx(
"Undefined liquid type quantity changed, please define liquid type first! Using init value.",
ErrorExSeverity.INFO);
2043 }
2044 }
2045
2046 }
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().