Baseless/prototypes/conditional.lua

23 lines
759 B
Lua
Raw Normal View History

2020-04-26 03:48:47 +00:00
local function RegisterConditionals(conditionals)
for key, value in pairs(conditionals) do
if Baseless.Needs[key] then
Baseless.RegisterIfNew(value)
end
end
end
RegisterConditionals {
AmmoType = Baseless.Make.AmmoCategory(),
EquipmentType = Baseless.Make.EquipmentCategory(),
FuelType = Baseless.Make.FuelCategory(),
ModuleType = Baseless.Make.ModuleCategory(),
ResourceType = Baseless.Make.ResourceCategory(),
RecipeType = Baseless.Make.RecipeCategory(),
GunItem = Baseless.Make.Gun(),
RailEntity = { Baseless.Make.CurvedRail(), Baseless.Make.StraightRail()} ,
RocketEntity = Baseless.Make.RocketSiloRocket(),
UnitEntity = Baseless.Make.Unit(),
Fluid = Baseless.Make.Fluid(),
Particle = Baseless.Make.Particle(),
}