Called on server side when this item's quantity is changed. Call super.OnQuantityChanged(); first when overriding this event.
См. определение в файле ItemBase.c строка 2005
2006 {
2007 SetWeightDirty();
2009
2010 if (parent)
2011 parent.OnAttachmentQuantityChangedEx(this, delta);
2012
2014 {
2016 {
2018 }
2020 {
2021 ErrorEx(
"Undefined liquid type quantity changed, please define liquid type first! Using init value.",
ErrorExSeverity.INFO);
2023 }
2024 }
2025
2026 }
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().