public ModuleInfo(RobotComponentType component, int slot, EntityDefault module, EntityDefault ammo) { Component = component; Slot = slot; Module = module; Ammo = ammo; }
protected RobotComponent(RobotComponentType type, IExtensionReader extensionReader) { _type = type; _extensionReader = extensionReader; }
public RobotComponent GetRobotComponent(RobotComponentType componentType) { return(RobotComponents.FirstOrDefault(c => c.Type == componentType)); }
public RobotComponent GetRobotComponentOrThrow(RobotComponentType componentType) { return(GetRobotComponent(componentType).ThrowIfNull(ErrorCodes.RequiredComponentNotFound)); }