示例#1
0
        public static bool ToString(Job __instance, ref String __result)
        {
            JobDef jobDef = __instance.def;
            string text1  = "";

            if (jobDef != null)
            {
                text1 = jobDef.ToString();
            }
            string text = text1 + " (" + __instance.GetUniqueLoadID() + ")";

            if (__instance.targetA.IsValid)
            {
                text = text + " A=" + __instance.targetA.ToString();
            }

            if (__instance.targetB.IsValid)
            {
                text = text + " B=" + __instance.targetB.ToString();
            }

            if (__instance.targetC.IsValid)
            {
                text = text + " C=" + __instance.targetC.ToString();
            }
            __result = text;
            return(false);
        }
示例#2
0
        public override string ToString()
        {
            string text = def.ToString() + " (" + GetUniqueLoadID() + ")";

            if (targetA.IsValid)
            {
                text = text + " A=" + targetA.ToString();
            }
            if (targetB.IsValid)
            {
                text = text + " B=" + targetB.ToString();
            }
            if (targetC.IsValid)
            {
                text = text + " C=" + targetC.ToString();
            }
            return(text);
        }