public dynamic ConvertToMe() { var location = CurrentXYZ.Split(','); return(new { Name = this.Name, Color = this.Color, XCoord = location[0], YCoord = location[1], ZCoord = location[2], CurrentXYZ = this.CurrentXYZ, CoreEnergy = this.CoreEnergy, CoreEnergyPeak = this.CoreEnergyPeak, CurrentEnergy = this.CurrentEnergy, MaxEnergy = this.MaxEnergy, MaxEnergyModifier = this.MaxEnergyModifier, CurrentCharge = this.CurrentCharge, MaxCharge = this.MaxCharge, MaxChargeModifier = this.MaxChargeModifier, CurrentWillpower = this.CurrentWillpower, MaxWillpower = this.MaxWillpower, MaxWillpowerModifier = this.MaxWillpowerModifier, ViewDistance = this.ViewDistance }); }
public dynamic ConvertToSoul() { var location = CurrentXYZ.Split(','); return(new { Name = this.Name, Color = this.Color, XCoord = location[0], YCoord = location[1], ZCoord = location[2], CurrentXYZ = this.CurrentXYZ }); }