Exemplo n.º 1
0
 public void GetRandomBodyProperties(
     int gender,
     ref BodyProperties bodyPropertiesMin,
     ref BodyProperties bodyPropertiesMax,
     int hairCoverType,
     int seed,
     string hairTags,
     string beardTags,
     string tatooTags,
     ref BodyProperties outBodyProperties)
 {
     byte[] numArray1 = (byte[])null;
     if (hairTags != null)
     {
         numArray1 = CallbackStringBufferManager.StringBuffer0;
         int bytes = ScriptingInterfaceOfIMBFaceGen._utf8.GetBytes(hairTags, 0, hairTags.Length, numArray1, 0);
         numArray1[bytes] = (byte)0;
     }
     byte[] numArray2 = (byte[])null;
     if (beardTags != null)
     {
         numArray2 = CallbackStringBufferManager.StringBuffer1;
         int bytes = ScriptingInterfaceOfIMBFaceGen._utf8.GetBytes(beardTags, 0, beardTags.Length, numArray2, 0);
         numArray2[bytes] = (byte)0;
     }
     byte[] numArray3 = (byte[])null;
     if (tatooTags != null)
     {
         numArray3 = CallbackStringBufferManager.StringBuffer2;
         int bytes = ScriptingInterfaceOfIMBFaceGen._utf8.GetBytes(tatooTags, 0, tatooTags.Length, numArray3, 0);
         numArray3[bytes] = (byte)0;
     }
     ScriptingInterfaceOfIMBFaceGen.call_GetRandomBodyPropertiesDelegate(gender, ref bodyPropertiesMin, ref bodyPropertiesMax, hairCoverType, seed, numArray1, numArray2, numArray3, ref outBodyProperties);
 }
Exemplo n.º 2
0
 public void ProduceNumericKeyWithParams(
     ref FaceGenerationParams faceGenerationParams,
     bool earsAreHidden,
     ref BodyProperties bodyProperties)
 {
     ScriptingInterfaceOfIMBFaceGen.call_ProduceNumericKeyWithParamsDelegate(ref faceGenerationParams, earsAreHidden, ref bodyProperties);
 }
Exemplo n.º 3
0
 public void GetParamsFromKey(
     ref FaceGenerationParams faceGenerationParams,
     ref BodyProperties bodyProperties,
     bool earsAreHidden)
 {
     ScriptingInterfaceOfIMBFaceGen.call_GetParamsFromKeyDelegate(ref faceGenerationParams, ref bodyProperties, earsAreHidden);
 }
Exemplo n.º 4
0
 public void ProduceNumericKeyWithDefaultValues(
     ref BodyProperties initialBodyProperties,
     bool earsAreHidden,
     int gender,
     float age)
 {
     ScriptingInterfaceOfIMBFaceGen.call_ProduceNumericKeyWithDefaultValuesDelegate(ref initialBodyProperties, earsAreHidden, gender, age);
 }
Exemplo n.º 5
0
        public void GetVoiceTypeUsableForPlayerData(int curGender, float age, bool[] aiArray)
        {
            PinnedArrayData <bool> pinnedArrayData = new PinnedArrayData <bool>(aiArray);
            IntPtr pointer = pinnedArrayData.Pointer;

            ScriptingInterfaceOfIMBFaceGen.call_GetVoiceTypeUsableForPlayerDataDelegate(curGender, age, pointer);
            pinnedArrayData.Dispose();
        }
Exemplo n.º 6
0
        public void GetSkinColorGradientPoints(int curGender, float age, Vec3[] colors)
        {
            PinnedArrayData <Vec3> pinnedArrayData = new PinnedArrayData <Vec3>(colors);
            IntPtr pointer = pinnedArrayData.Pointer;

            ScriptingInterfaceOfIMBFaceGen.call_GetSkinColorGradientPointsDelegate(curGender, age, pointer);
            pinnedArrayData.Dispose();
        }
Exemplo n.º 7
0
 public void GetDeformKeyData(
     int keyNo,
     ref DeformKeyData deformKeyData,
     int gender,
     float age)
 {
     ScriptingInterfaceOfIMBFaceGen.call_GetDeformKeyDataDelegate(keyNo, ref deformKeyData, gender, age);
 }
Exemplo n.º 8
0
 public void GetParamsMax(
     int curGender,
     float curAge,
     ref int hairNum,
     ref int beardNum,
     ref int faceTextureNum,
     ref int mouthTextureNum,
     ref int faceTattooNum,
     ref int soundNum,
     ref int eyebrowNum,
     ref float scale)
 {
     ScriptingInterfaceOfIMBFaceGen.call_GetParamsMaxDelegate(curGender, curAge, ref hairNum, ref beardNum, ref faceTextureNum, ref mouthTextureNum, ref faceTattooNum, ref soundNum, ref eyebrowNum, ref scale);
 }
Exemplo n.º 9
0
 public void GetZeroProbabilities(int curGender, float curAge, ref float tattooZeroProbability) => ScriptingInterfaceOfIMBFaceGen.call_GetZeroProbabilitiesDelegate(curGender, curAge, ref tattooZeroProbability);
Exemplo n.º 10
0
 public int GetNumEditableDeformKeys(bool initialGender, float age) => ScriptingInterfaceOfIMBFaceGen.call_GetNumEditableDeformKeysDelegate(initialGender, age);
Exemplo n.º 11
0
 public int GetMaturityType(float age) => ScriptingInterfaceOfIMBFaceGen.call_GetMaturityTypeDelegate(age);
Exemplo n.º 12
0
 public int GetSkinColorCount(int curGender, float age) => ScriptingInterfaceOfIMBFaceGen.call_GetSkinColorCountDelegate(curGender, age);
Exemplo n.º 13
0
 public int GetVoiceRecordsCount(int curGender, float age) => ScriptingInterfaceOfIMBFaceGen.call_GetVoiceRecordsCountDelegate(curGender, age);
Exemplo n.º 14
0
 public float GetScaleFromKey(int gender, ref BodyProperties initialBodyProperties) => ScriptingInterfaceOfIMBFaceGen.call_GetScaleFromKeyDelegate(gender, ref initialBodyProperties);
Exemplo n.º 15
0
 public int GetFaceGenInstancesLength(int gender, float age) => ScriptingInterfaceOfIMBFaceGen.call_GetFaceGenInstancesLengthDelegate(gender, age);
Exemplo n.º 16
0
 public bool EnforceConstraints(ref FaceGenerationParams faceGenerationParams) => ScriptingInterfaceOfIMBFaceGen.call_EnforceConstraintsDelegate(ref faceGenerationParams);