Added rename SideHair

This commit is contained in:
Absolutely disgusting
2025-11-04 08:11:16 +04:00
parent 14fadf3c65
commit 8f3e3b3aba
22 changed files with 64 additions and 63 deletions

View File

@@ -15,7 +15,8 @@ namespace _2DGAMELIB
["首"] = "Neck", ["首"] = "Neck",
["頭"] = "Head", ["頭"] = "Head",
["後髪0"] = "BackHair0", ["後髪0"] = "BackHair0",
["後髪1"] = "BackHair1" ["後髪1"] = "BackHair1",
["横髪"] = "SideHair"
}; };
public static void MigrateKeys(this Obj obj) public static void MigrateKeys(this Obj obj)

View File

@@ -46,7 +46,7 @@ namespace SlaveMatrix
BackHair0_肢系_右3_接続, BackHair0_肢系_右3_接続,
BackHair0_肢系_右4_接続, BackHair0_肢系_右4_接続,
BackHair0_肢系_右5_接続, BackHair0_肢系_右5_接続,
_肢系_肢_接続, SideHair_肢系_肢_接続,
_瞼_接続, _瞼_接続,
_宇_涙_接続, _宇_涙_接続,
_瞼_接続, _瞼_接続,

View File

@@ -1,6 +1,6 @@
namespace SlaveMatrix namespace SlaveMatrix
{ {
public class : Ele public class SideHair : Ele
{ {
public override double public override double
{ {

View File

@@ -3,7 +3,7 @@ using System;
namespace SlaveMatrix namespace SlaveMatrix
{ {
[Serializable] [Serializable]
public class D : EleD public class SideHairD : EleD
{ {
} }
} }

View File

@@ -2,7 +2,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
public class _カル : public class SideHair_カル : SideHair
{ {
public Par X0Y0_髪1; public Par X0Y0_髪1;
@@ -141,7 +141,7 @@ namespace SlaveMatrix
} }
} }
public _カル(double DisUnit, , , Med Med, _カルD e) public SideHair_カル(double DisUnit, , , Med Med, SideHair_カルD e)
{ {
ThisType = GetType(); ThisType = GetType();
Dif dif = new Dif(); Dif dif = new Dif();

View File

@@ -4,7 +4,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
[Serializable] [Serializable]
public class _ジグD : D public class SideHair_カルD : SideHairD
{ {
public bool 1_ = true; public bool 1_ = true;
@@ -18,12 +18,12 @@ namespace SlaveMatrix
public double ; public double ;
public _ジグD() public SideHair_カルD()
{ {
ThisType = GetType(); ThisType = GetType();
} }
public _ジグD SetRandom() public SideHair_カルD SetRandom()
{ {
1 = RNG.XS.NextDouble(); 1 = RNG.XS.NextDouble();
2 = RNG.XS.NextDouble(); 2 = RNG.XS.NextDouble();
@@ -36,7 +36,7 @@ namespace SlaveMatrix
public override Ele GetEle(double DisUnit, Med Med, ) public override Ele GetEle(double DisUnit, Med Med, )
{ {
return new _ジグ(DisUnit, , , Med, this); return new SideHair_カル(DisUnit, , , Med, this);
} }
} }
} }

View File

@@ -2,7 +2,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
public class _ジグ : public class SideHair_ジグ : SideHair
{ {
public Par X0Y0_髪1; public Par X0Y0_髪1;
@@ -141,7 +141,7 @@ namespace SlaveMatrix
} }
} }
public _ジグ(double DisUnit, , , Med Med, _ジグD e) public SideHair_ジグ(double DisUnit, , , Med Med, SideHair_ジグD e)
{ {
ThisType = GetType(); ThisType = GetType();
Dif dif = new Dif(); Dif dif = new Dif();

View File

@@ -4,7 +4,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
[Serializable] [Serializable]
public class _ハネD : D public class SideHair_ジグD : SideHairD
{ {
public bool 1_ = true; public bool 1_ = true;
@@ -18,12 +18,12 @@ namespace SlaveMatrix
public double ; public double ;
public _ハネD() public SideHair_ジグD()
{ {
ThisType = GetType(); ThisType = GetType();
} }
public _ハネD SetRandom() public SideHair_ジグD SetRandom()
{ {
1 = RNG.XS.NextDouble(); 1 = RNG.XS.NextDouble();
2 = RNG.XS.NextDouble(); 2 = RNG.XS.NextDouble();
@@ -36,7 +36,7 @@ namespace SlaveMatrix
public override Ele GetEle(double DisUnit, Med Med, ) public override Ele GetEle(double DisUnit, Med Med, )
{ {
return new _ハネ(DisUnit, , , Med, this); return new SideHair_ジグ(DisUnit, , , Med, this);
} }
} }
} }

View File

@@ -2,7 +2,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
public class _ハネ : public class SideHair_ハネ : SideHair
{ {
public Par X0Y0_髪1; public Par X0Y0_髪1;
@@ -141,7 +141,7 @@ namespace SlaveMatrix
} }
} }
public _ハネ(double DisUnit, , , Med Med, _ハネD e) public SideHair_ハネ(double DisUnit, , , Med Med, SideHair_ハネD e)
{ {
ThisType = GetType(); ThisType = GetType();
Dif dif = new Dif(); Dif dif = new Dif();

View File

@@ -4,7 +4,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
[Serializable] [Serializable]
public class _パツD : D public class SideHair_ハネD : SideHairD
{ {
public bool 1_ = true; public bool 1_ = true;
@@ -18,12 +18,12 @@ namespace SlaveMatrix
public double ; public double ;
public _パツD() public SideHair_ハネD()
{ {
ThisType = GetType(); ThisType = GetType();
} }
public _パツD SetRandom() public SideHair_ハネD SetRandom()
{ {
1 = RNG.XS.NextDouble(); 1 = RNG.XS.NextDouble();
2 = RNG.XS.NextDouble(); 2 = RNG.XS.NextDouble();
@@ -36,7 +36,7 @@ namespace SlaveMatrix
public override Ele GetEle(double DisUnit, Med Med, ) public override Ele GetEle(double DisUnit, Med Med, )
{ {
return new _パツ(DisUnit, , , Med, this); return new SideHair_ハネ(DisUnit, , , Med, this);
} }
} }
} }

View File

@@ -2,7 +2,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
public class _パツ : public class SideHair_パツ : SideHair
{ {
public Par X0Y0_髪1; public Par X0Y0_髪1;
@@ -141,7 +141,7 @@ namespace SlaveMatrix
} }
} }
public _パツ(double DisUnit, , , Med Med, _パツD e) public SideHair_パツ(double DisUnit, , , Med Med, SideHair_パツD e)
{ {
ThisType = GetType(); ThisType = GetType();
Dif dif = new Dif(); Dif dif = new Dif();

View File

@@ -4,7 +4,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
[Serializable] [Serializable]
public class _カルD : D public class SideHair_パツD : SideHairD
{ {
public bool 1_ = true; public bool 1_ = true;
@@ -18,12 +18,12 @@ namespace SlaveMatrix
public double ; public double ;
public _カルD() public SideHair_パツD()
{ {
ThisType = GetType(); ThisType = GetType();
} }
public _カルD SetRandom() public SideHair_パツD SetRandom()
{ {
1 = RNG.XS.NextDouble(); 1 = RNG.XS.NextDouble();
2 = RNG.XS.NextDouble(); 2 = RNG.XS.NextDouble();
@@ -36,7 +36,7 @@ namespace SlaveMatrix
public override Ele GetEle(double DisUnit, Med Med, ) public override Ele GetEle(double DisUnit, Med Med, )
{ {
return new _カル(DisUnit, , , Med, this); return new SideHair_パツ(DisUnit, , , Med, this);
} }
} }
} }

View File

@@ -2,7 +2,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
public class _編み : public class SideHair_編み : SideHair
{ {
public Par X0Y0_髪; public Par X0Y0_髪;
@@ -414,7 +414,7 @@ namespace SlaveMatrix
} }
} }
public _編み(double DisUnit, , , Med Med, _編みD e) public SideHair_編み(double DisUnit, , , Med Med, SideHair_編みD e)
{ {
ThisType = GetType(); ThisType = GetType();
Dif dif = new Dif(); Dif dif = new Dif();

View File

@@ -4,7 +4,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
[Serializable] [Serializable]
public class _編みD : D public class SideHair_編みD : SideHairD
{ {
public bool _表示 = true; public bool _表示 = true;
@@ -42,12 +42,12 @@ namespace SlaveMatrix
public double ; public double ;
public _編みD() public SideHair_編みD()
{ {
ThisType = GetType(); ThisType = GetType();
} }
public _編みD SetRandom() public SideHair_編みD SetRandom()
{ {
1 = RNG.XS.NextDouble(); 1 = RNG.XS.NextDouble();
2 = RNG.XS.NextDouble(); 2 = RNG.XS.NextDouble();
@@ -60,7 +60,7 @@ namespace SlaveMatrix
public override Ele GetEle(double DisUnit, Med Med, ) public override Ele GetEle(double DisUnit, Med Med, )
{ {
return new _編み(DisUnit, , , Med, this); return new SideHair_編み(DisUnit, , , Med, this);
} }
} }
} }

View File

@@ -3,7 +3,7 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
public class _肢系 : public class SideHair_肢系 : SideHair
{ {
public Par X0Y0_髪; public Par X0Y0_髪;
@@ -88,9 +88,9 @@ namespace SlaveMatrix
public JointS _接続点 => new JointS(, X0Y0_髪, 0); public JointS _接続点 => new JointS(, X0Y0_髪, 0);
public _肢系(double DisUnit, , , Med Med, _肢系D e) public SideHair_肢系(double DisUnit, , , Med Med, SideHair_肢系D e)
{ {
_肢系 _肢系2 = this; SideHair_肢系 _肢系2 = this;
ThisType = GetType(); ThisType = GetType();
Dif dif = new Dif(); Dif dif = new Dif();
dif.Tag = "肢系"; dif.Tag = "肢系";
@@ -139,7 +139,7 @@ namespace SlaveMatrix
{ {
f = g.GetEle(DisUnit, Med, ); f = g.GetEle(DisUnit, Med, );
f.Par = _肢系2; f.Par = _肢系2;
f.ConnectionType = ConnectionInfo._肢系_肢_接続; f.ConnectionType = ConnectionInfo.SideHair_肢系_肢_接続;
f.(_肢系2._接続点); f.(_肢系2._接続点);
return f; return f;
}).ToArray(); }).ToArray();

View File

@@ -5,13 +5,13 @@ using _2DGAMELIB;
namespace SlaveMatrix namespace SlaveMatrix
{ {
[Serializable] [Serializable]
public class _肢系D : D public class SideHair_肢系D : SideHairD
{ {
public bool _表示 = true; public bool _表示 = true;
public List<EleD> _接続 = new List<EleD>(); public List<EleD> _接続 = new List<EleD>();
public _肢系D() public SideHair_肢系D()
{ {
ThisType = GetType(); ThisType = GetType();
} }
@@ -20,7 +20,7 @@ namespace SlaveMatrix
{ {
_接続.Add(e); _接続.Add(e);
e.Par = this; e.Par = this;
e. = ConnectionInfo._肢系_肢_接続; e. = ConnectionInfo.SideHair_肢系_肢_接続;
} }
public EleD SetRandom() public EleD SetRandom()
@@ -30,7 +30,7 @@ namespace SlaveMatrix
public override Ele GetEle(double DisUnit, Med Med, ) public override Ele GetEle(double DisUnit, Med Med, )
{ {
return new _肢系(DisUnit, , , Med, this); return new SideHair_肢系(DisUnit, , , Med, this);
} }
} }
} }

View File

@@ -1928,7 +1928,7 @@ namespace SlaveMatrix
1D3.AlignR(); 1D3.AlignR();
} }
} }
D D2 = Mix<D>(, , : false, i, ); SideHairD D2 = Mix<SideHairD>(, , : false, i, );
D2.(D2); D2.(D2);
D2.AlignR(); D2.AlignR();
D2.(D2.Get逆()); D2.(D2.Get逆());

View File

@@ -66,9 +66,9 @@ namespace SlaveMatrix
public ; public ;
public ; public SideHair ;
public ; public SideHair ;
public BackHair1 1; public BackHair1 1;
@@ -2176,16 +2176,16 @@ namespace SlaveMatrix
set set
{ {
i = value; i = value;
if ( != null && is _編み) if ( != null && is SideHair_編み)
{ {
_編み obj = (_編み); SideHair_編み obj = (SideHair_編み);
obj.1_ = value..1_; obj.1_ = value..1_;
obj.2_ = value..2_; obj.2_ = value..2_;
obj.(value..); obj.(value..);
} }
if ( != null && is _編み) if ( != null && is SideHair_編み)
{ {
_編み obj2 = (_編み); SideHair_編み obj2 = (SideHair_編み);
obj2.1_ = value..1_; obj2.1_ = value..1_;
obj2.2_ = value..2_; obj2.2_ = value..2_;
obj2.(value..); obj2.(value..);
@@ -4053,8 +4053,8 @@ namespace SlaveMatrix
if ( != null) if ( != null)
{ {
= ._接続.GetEle<>(); = ._接続.GetEle<>();
= ._接続.GetEle<>(); = ._接続.GetEle<SideHair>();
= ._接続.GetEle<>(); = ._接続.GetEle<SideHair>();
1 = ._接続.GetEle<BackHair1>(); 1 = ._接続.GetEle<BackHair1>();
0 = ._接続.GetEle<BackHair0>(); 0 = ._接続.GetEle<BackHair0>();
} }
@@ -4138,7 +4138,7 @@ namespace SlaveMatrix
Sort((from e in ._接続.GetEles<>() Sort((from e in ._接続.GetEles<>()
select e.EnumEle()).JoinEnum(), ); select e.EnumEle()).JoinEnum(), );
Sort((from e in ._接続 Sort((from e in ._接続
where !(e is 2) && !(e is ) && !(e is ) && !(e is ) where !(e is 2) && !(e is ) && !(e is ) && !(e is SideHair)
select e.EnumEle()).JoinEnum(), ); select e.EnumEle()).JoinEnum(), );
} }
if (._接続 != null) if (._接続 != null)
@@ -4148,7 +4148,7 @@ namespace SlaveMatrix
Sort((from e in ._接続.GetEles<>() Sort((from e in ._接続.GetEles<>()
select e.EnumEle()).JoinEnum(), ); select e.EnumEle()).JoinEnum(), );
Sort((from e in ._接続 Sort((from e in ._接続
where !(e is 2) && !(e is ) && !(e is ) && !(e is ) where !(e is 2) && !(e is ) && !(e is ) && !(e is SideHair)
select e.EnumEle()).JoinEnum(), ); select e.EnumEle()).JoinEnum(), );
} }
if (._接続 != null) if (._接続 != null)

View File

@@ -2067,7 +2067,7 @@ namespace SlaveMatrix
{ {
result.c = ContactType.Face; result.c = ContactType.Face;
} }
else if (result.e is || result.e is BackHair0 || result.e is BackHair1 || result.e is ) else if (result.e is SideHair || result.e is BackHair0 || result.e is BackHair1 || result.e is )
{ {
result.c = ContactType.Hair; result.c = ContactType.Hair;
} }

View File

@@ -576,7 +576,7 @@ namespace SlaveMatrix
ConnectionInfo.BackHair0_肢系_右3_接続 => 1, ConnectionInfo.BackHair0_肢系_右3_接続 => 1,
ConnectionInfo.BackHair0_肢系_右4_接続 => 1, ConnectionInfo.BackHair0_肢系_右4_接続 => 1,
ConnectionInfo.BackHair0_肢系_右5_接続 => 1, ConnectionInfo.BackHair0_肢系_右5_接続 => 1,
ConnectionInfo._肢系_肢_接続 => 1, ConnectionInfo.SideHair_肢系_肢_接続 => 1,
ConnectionInfo._瞼_接続 => 1, ConnectionInfo._瞼_接続 => 1,
ConnectionInfo._宇_涙_接続 => 1, ConnectionInfo._宇_涙_接続 => 1,
ConnectionInfo._瞼_接続 => 1, ConnectionInfo._瞼_接続 => 1,

View File

@@ -14,7 +14,7 @@ namespace SlaveMatrix
{ {
foreach (EleD item in .EnumEleD()) foreach (EleD item in .EnumEleD())
{ {
if (!(item is 0D) && !(item is BackHair1D) && !(item is D) && !(item is D)) if (!(item is 0D) && !(item is BackHair1D) && !(item is SideHairD) && !(item is D))
{ {
item.B *= 0.98; item.B *= 0.98;
} }
@@ -4938,7 +4938,7 @@ namespace SlaveMatrix
= 1.0 = 1.0
}; };
hair_description.(backhair_description); hair_description.(backhair_description);
_カルD sidehair_description = new _カルD SideHair_カルD sidehair_description = new SideHair_カルD
{ {
1 = 1.0, 1 = 1.0,
2 = 1.0, 2 = 1.0,

View File

@@ -182,27 +182,27 @@ namespace SlaveMatrix.GameClasses
{ {
return RNG.XS.NextM(5) switch return RNG.XS.NextM(5) switch
{ {
0 => new _ジグD 0 => new SideHair_ジグD
{ {
= =
}.SetRandom(), }.SetRandom(),
1 => new _ハネD 1 => new SideHair_ハネD
{ {
= =
}.SetRandom(), }.SetRandom(),
2 => new _パツD 2 => new SideHair_パツD
{ {
= =
}.SetRandom(), }.SetRandom(),
3 => new _カルD 3 => new SideHair_カルD
{ {
= =
}.SetRandom(), }.SetRandom(),
4 => new _編みD 4 => new SideHair_編みD
{ {
= =
}.SetRandom(), }.SetRandom(),
_ => new _肢系D _ => new SideHair_肢系D
{ {
= =
}, },