CharacterKit/BuiltInFaces.Generated.cs

Auto-generated partial class that defines built-in face presets for the CharacterEditor. It creates an array of Entry metadata and provides a Data(string key) switch that returns large JSON blobs with facial parameters for each named face.

// Generated from authored neutral references; source images are not shipped.
namespace CharacterEditor;
public static partial class BuiltInFaces
{
 static Entry[] CreateEntries() => new Entry[]
 {
  new(7,"female08","Face 8 · female","45f1554426e3531da0ed8eb21d7cdfbf"),
  new(8,"female09","Face 9 · female","03050c96aabd5a9c84dac84c767ddc2a"),
  new(9,"female10","Face 10 · female","f5065068e5035f47bbce8d1493eb036e"),
  new(10,"goblin","Face 11 · Goblin","ac140092db925408a32dca18734636e6"),
  new(11,"bovine","Face 12 · Bovine","7f15a011b6a458ef9b6e51dd94cd267b"),
  new(12,"orc","Face 13 · Orc","28d3e98785f4563c994e6313ccf3887f"),
 };
 static string Data(string key) => key switch
 {
  "female08" => "{\"Version\":1,\"Id\":\"d73ccbd8d12341d6a1b786b310b0d8af\",\"Strength\":1,\"Name\":\"female08\",\"Influence\":1,\"HeadWeights\":[0,0.39399996,0,0.606,0,0,0],\"RegionWeights\":{\"nose\":[0,0.244,0,0.756,0,0,0],\"jaw\":[0,0.619,0,0.38100004,0,0,0],\"eyes\":[0,0.16899998,0,0.83100003,0,0,0],\"mouth\":[0,0.39899996,0,0.6010001,0,0,0],\"forehead\":[0,0.369,0,0.63100004,0,0,0],\"cheeks\":[0,0.32399997,0,0.67600006,0,0,0]},\"Corrections\":{\"facewidth\":0.02,\"faceheight\":0.1,\"jawwidth\":0.1,\"cheekwidth\":0.18,\"eyespan\":0.0065435963,\"eyelevel\":-0.03555849,\"mouthlevel\":0.32487616,\"noselevel\":-0.013877029,\"upperlid\":-0.646567,\"lowerlid\":0.41202268,\"outereyeheight\":0.09967543,\"outereyewidth\":-0.30832496,\"innereyeheight\":-1,\"innerbrow\":-0.20926179,\"outerbrow\":0.75693643,\"bridgewidth\":1,\"rootdepth\":-0.65,\"tipwidth\":1,\"mouthcornerheight\":-0.14480628,\"mouthcornerwidth\":-0.7230191,\"cupidheight\":0.09469179,\"lowerlipcurve\":-1,\"jawangleheight\":-0.20997058,\"jawcontourwidth\":-0.007158227,\"templewidth\":0.06428633,\"chinpointwidth\":-0.3,\"browdepth\":0.00018902944},\"Offsets\":{\"forehead\":0.104411595,\"cheekbones\":0.1,\"cheeks\":-0.05767923,\"jaw\":0.12,\"chin\":-0.18,\"chinwidth\":0.108114004,\"chinheight\":-0.0022420955,\"submental\":-0.138664,\"nose\":-0.16,\"nosewidth\":-0.005264702,\"nostrils\":0.052572627,\"nostrilfullness\":-0.04026289,\"noseheight\":0.12,\"columella\":0.059903834,\"philtrum\":-0.06106267,\"mouthwidth\":-0.004553735,\"mouthprojection\":-0.12055036,\"upperlip\":-0.04605679,\"lowerlip\":-0.12804557,\"eyes\":-0.027695127,\"brow\":-0.060650952}}",
  "female09" => "{\"Version\":1,\"Id\":\"30efc25b5fd542738049defe7362e900\",\"Strength\":1,\"Name\":\"female09\",\"Influence\":1,\"HeadWeights\":[0,0.73899996,0,0.261,0,0,0],\"RegionWeights\":{\"nose\":[0,0.7189999,0,0.28100005,0,0,0],\"jaw\":[0,0.879,0,0.12100003,0,0,0],\"eyes\":[0,0.629,0,0.37099996,0,0,0],\"mouth\":[0,0.91899997,0,0.08100003,0,0,0],\"forehead\":[0,0.80399996,0,0.19600004,0,0,0],\"cheeks\":[0,0.60899997,0,0.391,0,0,0]},\"Corrections\":{\"facewidth\":-0.27,\"faceheight\":0.44648772,\"jawwidth\":-0.17505689,\"cheekwidth\":-0.103083655,\"eyespan\":0.13345458,\"eyelevel\":-0.13274324,\"mouthlevel\":0.2121532,\"noselevel\":-0.052004155,\"upperlid\":-1,\"lowerlid\":-0.28951845,\"outereyeheight\":0.35641137,\"outereyewidth\":-0.17914245,\"innereyeheight\":-0.918834,\"innerbrow\":0.5407264,\"outerbrow\":1,\"bridgewidth\":0.22,\"rootdepth\":0.07654674,\"tipwidth\":0.85,\"mouthcornerheight\":0.026924534,\"mouthcornerwidth\":0.85,\"cupidheight\":0.5516474,\"lowerlipcurve\":-0.3,\"jawangleheight\":-0.1896772,\"jawcontourwidth\":-0.095313534,\"templewidth\":0.06870697,\"chinpointwidth\":-0.65,\"browdepth\":-0.00092092715},\"Offsets\":{\"forehead\":0.0705161,\"cheekbones\":0.056168325,\"cheeks\":0.010586148,\"jaw\":-0.08433808,\"chin\":-0.21776769,\"chinwidth\":0.10904754,\"chinheight\":-0.017844874,\"submental\":-0.22993588,\"nose\":-0.05522503,\"nosewidth\":0.14,\"nostrils\":0.19,\"nostrilfullness\":-0.14482681,\"noseheight\":0.072983794,\"columella\":0.029234739,\"philtrum\":0.026748154,\"mouthwidth\":0.04,\"mouthprojection\":-0.14948393,\"upperlip\":0.14,\"lowerlip\":0.08,\"eyes\":0.015101982,\"brow\":-0.010256672}}",
  "female10" => "{\"Version\":1,\"Id\":\"a6b473ff45cd4ef69d3a31ae2a70828b\",\"Strength\":1,\"Name\":\"female10\",\"Influence\":1,\"HeadWeights\":[0,0.689,0,0.311,0,0,0],\"RegionWeights\":{\"nose\":[0,0.429,0,0.57100004,0,0,0],\"jaw\":[0,0.834,0,0.16600002,0,0,0],\"eyes\":[0,0.61399996,0,0.38600004,0,0,0],\"mouth\":[0,0.63899994,0,0.361,0,0,0],\"forehead\":[0,0.999,0,0.0009999753,0,0,0],\"cheeks\":[0,0.6739999,0,0.32600003,0,0,0]},\"Corrections\":{\"facewidth\":-0.44642907,\"faceheight\":0.32,\"jawwidth\":-0.15505074,\"cheekwidth\":0.32,\"eyespan\":0.14510742,\"eyelevel\":0.0688193,\"mouthlevel\":0.19240429,\"noselevel\":0.083683774,\"upperlid\":-0.45,\"lowerlid\":0.0068653757,\"outereyeheight\":0.0363033,\"outereyewidth\":-0.01979492,\"innereyeheight\":-0.4911909,\"innerbrow\":-0.23437822,\"outerbrow\":0.40379813,\"bridgewidth\":-0.25,\"rootdepth\":0.6,\"tipwidth\":-0.45,\"mouthcornerheight\":0.21941032,\"mouthcornerwidth\":0.10066369,\"cupidheight\":0.5724471,\"lowerlipcurve\":0.21318112,\"jawangleheight\":-0.06435176,\"jawcontourwidth\":-0.25,\"templewidth\":-0.1,\"chinpointwidth\":-0.19491453,\"browdepth\":0.028065523},\"Offsets\":{\"forehead\":0.04194097,\"cheekbones\":0.22,\"cheeks\":-0.16,\"jaw\":-0.16,\"chin\":-0.14,\"chinwidth\":-0.03484314,\"chinheight\":-0.022702402,\"submental\":-0.054347243,\"nose\":0.22,\"nosewidth\":-0.010153114,\"nostrils\":-0.013782262,\"nostrilfullness\":0.008892398,\"noseheight\":-0.06,\"columella\":-0.052289635,\"philtrum\":-0.053719398,\"mouthwidth\":0.011252033,\"mouthprojection\":0.090030104,\"upperlip\":0.18,\"lowerlip\":0.04,\"eyes\":0.1131081,\"brow\":0.116544195}}",
  "goblin" => "{\"Version\":1,\"Id\":\"00000000000000000000000000000000\",\"Name\":\"Fantasy\",\"Influence\":1,\"Strength\":1,\"HeadWeights\":[0,0,1,0,0,0,0],\"RegionWeights\":{},\"Corrections\":{},\"Offsets\":{\"nose\":0.18,\"nosewidth\":-0.08,\"nostrils\":0.1,\"chin\":0.12,\"chinwidth\":-0.2,\"jaw\":-0.15,\"cheeks\":-0.2,\"brow\":0.14,\"upperlip\":-0.1,\"lowerlip\":-0.1}}",
  "bovine" => "{\"Version\":1,\"Id\":\"00000000000000000000000000000000\",\"Name\":\"Fantasy\",\"Influence\":1,\"Strength\":1,\"HeadWeights\":[0,0,1,0,0,0,0],\"RegionWeights\":{},\"Corrections\":{},\"Offsets\":{\"nosewidth\":0.1,\"nostrils\":0.12,\"chinwidth\":0.1,\"jaw\":0.04,\"cheeks\":0.1,\"upperlip\":0.02,\"lowerlip\":0.02}}",
  "orc" => "{\"Version\":1,\"Id\":\"00000000000000000000000000000000\",\"Name\":\"Fantasy\",\"Influence\":1,\"Strength\":1,\"HeadWeights\":[0,0,1,0,0,0,0],\"RegionWeights\":{},\"Corrections\":{},\"Offsets\":{\"jaw\":0.12,\"chinwidth\":0.16,\"brow\":0.25,\"nosewidth\":0.1,\"nostrils\":0.1,\"cheekbones\":0.14,\"upperlip\":-0.05,\"lowerlip\":0.04}}",
  _ => throw new System.ArgumentOutOfRangeException(nameof(key))
 };
}