public static MonsterSetPiece Instance(string SetPiece, int offsetFix) { var key = new Tuple<string, int>(SetPiece, offsetFix); MonsterSetPiece ret; if (!instances.TryGetValue(key, out ret)) ret = instances[key] = new MonsterSetPiece(SetPiece, offsetFix); return ret; }
public static MonsterSetPiece Instance(string SetPiece, int offsetFix) { var key = new Tuple <string, int>(SetPiece, offsetFix); MonsterSetPiece ret; if (!instances.TryGetValue(key, out ret)) { ret = instances[key] = new MonsterSetPiece(SetPiece, offsetFix); } return(ret); }