public static int Resolve(this TargetMap value, int factionId) { MapAttribute mapAttribute = value.smethod_1 <MapAttribute>(); if (mapAttribute != null && mapAttribute.ByFaction != 0) { return(MapUtils.smethod_12(mapAttribute.ByFaction, factionId)); } return((int)value); }
public static string GetName(this TargetMap value) { MapAttribute mapAttribute = value.smethod_1 <MapAttribute>(); if (mapAttribute != null) { return(mapAttribute.Name); } return(value.ToString()); }