Beispiel #1
0
 void warn_add_OBJ_field_defaulting_to_basic_field_type(string field_name, string arch_tag, FieldType type)
 {
     warn_at();
     Form1.stdout.print("         Archetype '{1}' does not define OBJ field '{0}', defaulting type to '{2}'\n",
                        field_name, arch_tag, type.ToString());
 }
Beispiel #2
0
 void warn_add_OBJ_field_mismatch_with_archetype_field(Obj obj, string field_name, FieldType obj_field_type)
 {
     warn_at();
     Form1.stdout.print("         Field type mismatch with Archetype '{1}', ignoring OBJ field '{0}',\n" +
                        "         obj_field_type '{2}' != arch_field_type '{3}'\n",
                         field_name, obj.archetype.tag, obj_field_type.ToString(), obj.archetype[field_name].type.ToString());
 }
Beispiel #3
0
        void print_debug_for_add_list_field(string field_name, FieldType type, List<int> list_int, List<string> list_string, List<decimal> list_decimal)
        {
            return;  // Comment out to re-enable debug output.  Goes well with the debug output in parse_OBJ_decl()

            Form1.stdout.print("    OBJ add_field(name={0}, type={1},[", field_name, type.ToString() );
            if (list_int     != null) { foreach (int     ii in list_int    ) { Form1.stdout.print("{0}, ",   ii); } }
            if (list_string  != null) { foreach (string  ss in list_string ) { Form1.stdout.print("'{0}', ", ss); } }
            if (list_decimal != null) { foreach (decimal dd in list_decimal) { Form1.stdout.print("{0}M, ",  dd); } }
            Form1.stdout.print("]\n");
        }