public static float GetHeight(this CharacterHeight value) { switch (value) { case CharacterHeight.Minuscule: return(0.7f); case CharacterHeight.Tiny: return(0.9f); case CharacterHeight.Small: return(1.1f); case CharacterHeight.Normal: return(1.25f); case CharacterHeight.Tall: return(1.4f); case CharacterHeight.Huge: return(1.6f); default: throw new ArgumentOutOfRangeException("value", value, null); } }
public PersonalInformation(CharacterName characterName, CharacterSex characterSex, CharacterRace characterRace, CharacterBackground characterBackground, CharacterAge characterAge, CharacterHeight characterHeight, CharacterWeight characterWeight, CharacterHairStyle hairStyle) { cName = characterName; cRace = characterRace; cSex = characterSex; cBackground = characterBackground; cHeight = characterHeight; cWeight = characterWeight; cAge = characterAge; cHair = hairStyle; }
public unsafe void SetCharacterHeight(CharacterHeight value) { //IL_0017: Unknown result type (might be due to invalid IL or missing references) //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) if (m_height != value) { float height = value.GetHeight(); Vector3 localPosition = m_adjustableHeightContainer.get_localPosition(); localPosition.y = height / ((IntPtr)(void *)this.get_transform().get_localScale()).y; m_adjustableHeightContainer.set_localPosition(localPosition); m_height = value; } }
public void AcceptAttributeCharacterHeight(CharacterHeight characterHeight, PrintContext parameter) { parameter.WriteLine("Character Height: {0}", characterHeight.Height); }
public virtual void AcceptAttributeCharacterHeight(CharacterHeight characterHeight, T parameter) { // intentionally left blank }