PlayerContInputs ConvertToPlayerContInputs( Profile p ) { PlayerContInputs pci = new PlayerContInputs(); pci.sAttack = p.kAttack.ToString(); pci.sJump = p.kJump.ToString(); pci.sPause = p.kPause.ToString(); pci.sSwap1 = p.kSwap1.ToString(); pci.sSwap2 = p.kSwap2.ToString(); pci.sSwap3 = p.kSwap3.ToString(); pci.sSwap4 = p.kSwap4.ToString(); return pci; }
PlayerContInputs ConvertToPlayerContInputs( Profile aProfile ) { PlayerContInputs p = new PlayerContInputs(); p.bAttack = ConvertToGamepadButton( aProfile.kAttack ); p.bJump = ConvertToGamepadButton( aProfile.kJump ); p.bPause = ConvertToGamepadButton( aProfile.kPause ); p.bSwap1 = ConvertToGamepadButton( aProfile.kSwap1 ); p.bSwap2 = ConvertToGamepadButton( aProfile.kSwap2 ); p.bSwap3 = ConvertToGamepadButton( aProfile.kSwap3 ); p.bSwap4 = ConvertToGamepadButton( aProfile.kSwap4 ); return p; }
PlayerContInputs ConvertToPlayerContInputs(Profile aProfile) { PlayerContInputs p = new PlayerContInputs(); p.bAttack = ConvertToGamepadButton(aProfile.kAttack); p.bJump = ConvertToGamepadButton(aProfile.kJump); p.bPause = ConvertToGamepadButton(aProfile.kPause); p.bSwap1 = ConvertToGamepadButton(aProfile.kSwap1); p.bSwap2 = ConvertToGamepadButton(aProfile.kSwap2); p.bSwap3 = ConvertToGamepadButton(aProfile.kSwap3); p.bSwap4 = ConvertToGamepadButton(aProfile.kSwap4); return(p); }