Ejemplo n.º 1
0
        protected PartBase(PartRecord partRecord, Unit owner)
        {
            // For null weapon
            if (partRecord == null)
            {
                return;
            }

            // Load stats for part
            Stats = PooReader.GetStatsForPart(partRecord);

            // Set color
            Color = partRecord.Color;

            // Set owner
            Owner = owner;

            // Set the Id
            Id = partRecord.Id;

            // TODO: Any other info we need
        }