def ebEntryGenerator(spec, table_map): if not spec.has_key("type"): return genericEntryGenerator(spec, table_map) elif spec['type'] == 'pointer': return PointerTableEntry(spec["name"], spec["size"]) elif spec['type'] == 'palette': return PaletteTableEntry(spec["name"], spec["size"]) elif spec['type'] == 'standardtext': return TextTableEntry(spec["name"], spec["size"]) else: return genericEntryGenerator(spec, table_map)
def ebEntryGenerator(spec, table_map): if not spec.has_key("type"): return genericEntryGenerator(spec, table_map) elif spec["type"] == "pointer": return PointerTableEntry(spec["name"], spec["size"]) elif spec["type"] == "palette": return PaletteTableEntry(spec["name"], spec["size"]) elif spec["type"] == "standardtext": return TextTableEntry(spec["name"], spec["size"]) elif spec["type"] == "standardtext null-terminated": return NullTerminatedTextTableEntry(spec["name"], spec["size"]) else: return genericEntryGenerator(spec, table_map)
def eb0EntryGenerator(spec, table_map): if not spec.has_key("type"): return genericEntryGenerator(spec, table_map) else: return genericEntryGenerator(spec, table_map)