protected ModPrefab_Craftable(
            string techTypeName,
            string friendlyName,
            string description,
            TechType template,
            TechType requiredAnalysis,
            TechGroup groupForPDA,
            TechCategory categoryForPDA,
            EquipmentType equipmentType,
            QuickSlotType quickSlotType,
            CraftData.BackgroundType backgroundType,
            Vector2int itemSize,
            ModPrefab_Fragment fragment
            )
            : base(techTypeName, $"{techTypeName}.Prefab")
        {
            TechTypeName      = techTypeName;
            FriendlyName      = friendlyName;
            Description       = description;
            PrefabTemplate    = template;
            RequiredForUnlock = requiredAnalysis;
            GroupForPDA       = groupForPDA;
            CategoryForPDA    = categoryForPDA;
            TypeForEquipment  = equipmentType;
            TypeForQuickslot  = quickSlotType;
            BackgroundType    = backgroundType;
            ItemSize          = itemSize;
            _Fragment         = fragment;

            IngameMenuHandler.Main.RegisterOnQuitEvent(OnQuitEvent);
        }
示例#2
0
 protected ModPrefab_Vehicle(
     string techTypeName,
     string friendlyName,
     string description,
     TechType template,
     TechType requiredAnalysis,
     TechGroup groupForPDA,
     TechCategory categoryForPDA,
     ModPrefab_Fragment fragment
     )
     : base(techTypeName, $"{techTypeName}.Prefab")
 {
     TechTypeName      = techTypeName;
     FriendlyName      = friendlyName;
     Description       = description;
     PrefabTemplate    = template;
     RequiredForUnlock = requiredAnalysis;
     GroupForPDA       = groupForPDA;
     CategoryForPDA    = categoryForPDA;
     _Fragment         = fragment;
 }