コード例 #1
0
        public static int Resolve(this TargetMap value, int factionId)
        {
            MapAttribute mapAttribute = value.smethod_0 <MapAttribute>();

            if (mapAttribute != null && mapAttribute.ByFaction != 0)
            {
                return(MapUtils.smethod_12(mapAttribute.ByFaction, factionId));
            }
            return((int)value);
        }
コード例 #2
0
        public static string GetName(this TargetMap value)
        {
            MapAttribute mapAttribute = value.smethod_0 <MapAttribute>();

            if (mapAttribute != null)
            {
                return(mapAttribute.Name);
            }
            return(value.ToString());
        }