public Pod AddMurpleFromDefinition(string definitionName) { Pod newPod = new Pod (); Definition murpleDefinition = GetMurpleDefinition(definitionName); newPod.AddDefinition(murpleDefinition); foreach (KeyValuePair<string, StatBase> definitionNodeBase in murpleDefinition.Definitions) { string statName = definitionNodeBase.Key; StatBase statValue = definitionNodeBase.Value; StatBase newStat = (StatBase)mStatHelper.Create(statValue.StatTypeSystem, statValue); newPod.AddStat(statName, newStat); } newPod.UUID = Pod.GenerateUUID(); //mMurples.Add(murpleName, newPod); return newPod; }