Example #1
0
        public void AddWeaponComponent(WeaponData weapon, WeaponComponentData data)
        {
            data.Hash();
            if (weapon.components.ContainsKey((uint)data.hash))
            {
                return;
            }
            data = AddWeaponComponent(data);

            TranslationProcessor.ProcessComponentLanguage(data);
            AttachmentPointProcessor.Process(weapon.hash, data);

            weapon.components.Add((uint)data.hash, data);
        }