private string ScopedId(string id) { if (PlaceholderInterpolation.Create(id, component, out var interpolation)) { return(interpolation.InterpolateEffectId(id)); } if (!HasLinked) { var uid = component.uid; return($"{id}_{uid}"); } return(id); }
internal static bool Create(string effectId, MechComponent mechComponent, out PlaceholderInterpolation naming) { if (!HasPlaceholders(effectId)) { naming = null !; return(false); } if (mechComponent.parent is Mech) { naming = new MechPlaceholderInterpolation(mechComponent); return(true); } if (mechComponent.parent is Vehicle) { naming = new VehiclePlaceholderInterpolation(mechComponent); return(true); } naming = null !; return(false); }