Example #1
0
        private int GetRemainingSlottedStructure(Component_SlottedContainer slottedContainer)
        {
            var q = new GameQuery_EntityAttribute(EntityAttributeType.STRUCTURE, slottedContainer.Parent);

            q.RegisterBaseValue(0);
            return(((GameQuery_EntityAttribute)slottedContainer.HandleQuery(q)).Value);
        }