public static inheritsFrom ( ME3ExportEntry entry, string baseClass ) : bool | ||
entry | ME3ExportEntry | |
baseClass | string | |
리턴 | bool |
public static bool inheritsFrom(this IExportEntry entry, string baseClass) { if (entry.FileRef.Game == MEGame.ME1) { return(ME1UnrealObjectInfo.inheritsFrom(entry as ME1ExportEntry, baseClass)); } else if (entry.FileRef.Game == MEGame.ME2) { return(ME2UnrealObjectInfo.inheritsFrom(entry as ME2ExportEntry, baseClass)); } else if (entry.FileRef.Game == MEGame.ME3) { return(ME3UnrealObjectInfo.inheritsFrom(entry as ME3ExportEntry, baseClass)); } return(false); }
public static bool inheritsFrom(this IEntry entry, string baseClass) { switch (entry.FileRef.Game) { case MEGame.ME1: return(ME1UnrealObjectInfo.inheritsFrom(entry, baseClass)); case MEGame.ME2: return(ME2UnrealObjectInfo.inheritsFrom(entry, baseClass)); case MEGame.ME3: case MEGame.UDK: //use me3? return(ME3UnrealObjectInfo.inheritsFrom(entry, baseClass)); default: return(false); } }