public DeltDexData ConvertDexToData(DeltDexClass dex) { DeltDexData newDexData = new DeltDexData(); newDexData.nickname = dex.nickname; newDexData.actualName = dex.deltName; newDexData.pin = dex.pinNumber; newDexData.rarity = dex.rarity; return(newDexData); }
// Add new DeltDex Data entry to player DeltDexData newDeltDexData(DeltDexClass deltDex) { DeltDexData ddd = new DeltDexData(); ddd.actualName = deltDex.deltName; ddd.nickname = deltDex.nickname; ddd.pin = deltDex.pinNumber; ddd.rarity = deltDex.rarity; return(ddd); }