linting
removed some dead code and fixed a few bugs i introduced
This commit is contained in:
@@ -9,10 +9,5 @@ namespace SlaveMatrix
|
||||
public Ele e;
|
||||
|
||||
public Par p;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return ("接触:" + c).ToString() + "\r\n" + ("Ele:" + ((e == null) ? "null" : e.ToString())).ToString() + "\r\n" + ("Par:" + ((p == null) ? "null" : p.ToString())).ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2915,22 +2915,6 @@ namespace SlaveMatrix
|
||||
ぶっかけ大.Clear();
|
||||
}
|
||||
|
||||
public void スタンプ脚Clear()
|
||||
{
|
||||
スタンプK[] array = キスマーク;
|
||||
for (int i = 0; i < array.Length; i++)
|
||||
{
|
||||
array[i].脚Clear();
|
||||
}
|
||||
スタンプW[] array2 = 鞭痕;
|
||||
for (int i = 0; i < array2.Length; i++)
|
||||
{
|
||||
array2[i].脚Clear();
|
||||
}
|
||||
ぶっかけ小.Clear();
|
||||
ぶっかけ大.Clear();
|
||||
}
|
||||
|
||||
public void Sort(IEnumerable<Ele> ar, List<Ele> li)
|
||||
{
|
||||
foreach (Ele item in ar)
|
||||
@@ -9217,235 +9201,11 @@ namespace SlaveMatrix
|
||||
腰肌_人.陰毛_ハートCD.不透明度 = Cha.ChaD.現陰毛.Inverse() * Cha.ChaD.最陰毛濃度;
|
||||
}
|
||||
|
||||
public void SetEle<T>(Action<T> a) where T : Ele
|
||||
{
|
||||
T ele = Elements.GetEle<T>();
|
||||
if (ele == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
a(ele);
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (ei.ElesH.Contains(ele))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetEle<T>(bool 右, Action<T> a) where T : Ele
|
||||
{
|
||||
T ele = Elements.GetEle<T>(右);
|
||||
if (ele == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
a(ele);
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (ei.ElesH.Contains(ele))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetEle<T>(Func<T, bool> con, Action<T> a) where T : Ele
|
||||
{
|
||||
T ele = Elements.GetEle(con);
|
||||
if (ele == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
a(ele);
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (ei.ElesH.Contains(ele))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetEleL<T>(Action<T> a) where T : Ele
|
||||
{
|
||||
T eleL = Elements.GetEleL<T>();
|
||||
if (eleL == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
a(eleL);
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (ei.ElesH.Contains(eleL))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetEleL<T>(bool 右, Action<T> a) where T : Ele
|
||||
{
|
||||
T eleL = Elements.GetEleL<T>(右);
|
||||
if (eleL == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
a(eleL);
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (ei.ElesH.Contains(eleL))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetEleL<T>(Func<T, bool> con, Action<T> a) where T : Ele
|
||||
{
|
||||
T eleL = Elements.GetEleL(con);
|
||||
if (eleL == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
a(eleL);
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (ei.ElesH.Contains(eleL))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetEles<T>(Action<T> a) where T : Ele
|
||||
{
|
||||
IEnumerable<T> eles;
|
||||
foreach (T item in eles = Elements.GetEles<T>())
|
||||
{
|
||||
a(item);
|
||||
}
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (eles.Any((T e) => ei.ElesH.Contains(e)))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetEles<T>(bool 右, Action<T> a) where T : Ele
|
||||
{
|
||||
IEnumerable<T> eles;
|
||||
foreach (T item in eles = Elements.GetEles<T>(右))
|
||||
{
|
||||
a(item);
|
||||
}
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (eles.Any((T e) => ei.ElesH.Contains(e)))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetEles<T>(Func<T, bool> con, Action<T> a) where T : Ele
|
||||
{
|
||||
IEnumerable<T> eles;
|
||||
foreach (T item in eles = Elements.GetEles(con))
|
||||
{
|
||||
a(item);
|
||||
}
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (eles.Any((T e) => ei.ElesH.Contains(e)))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetElesL<T>(Action<T> a) where T : Ele
|
||||
{
|
||||
IEnumerable<T> elesL;
|
||||
foreach (T item in elesL = Elements.GetElesL<T>())
|
||||
{
|
||||
a(item);
|
||||
}
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (elesL.Any((T e) => ei.ElesH.Contains(e)))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetElesL<T>(bool 右, Action<T> a) where T : Ele
|
||||
{
|
||||
IEnumerable<T> elesL;
|
||||
foreach (T item in elesL = Elements.GetElesL<T>(右))
|
||||
{
|
||||
a(item);
|
||||
}
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (elesL.Any((T e) => ei.ElesH.Contains(e)))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetElesL<T>(Func<T, bool> con, Action<T> a) where T : Ele
|
||||
{
|
||||
IEnumerable<T> elesL;
|
||||
foreach (T item in elesL = Elements.GetElesL(con))
|
||||
{
|
||||
a(item);
|
||||
}
|
||||
foreach (EleI ei in eis)
|
||||
{
|
||||
if (elesL.Any((T e) => ei.ElesH.Contains(e)))
|
||||
{
|
||||
ei.Updatef = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public List<string> GetHitTags(Color hc)
|
||||
{
|
||||
return (from e in EnumAllEle()
|
||||
select e.本体.GetHitTags(ref hc)).Aggregate(delegate(List<string> e0, List<string> e1)
|
||||
{
|
||||
e0.AddRange(e1);
|
||||
return e0;
|
||||
});
|
||||
}
|
||||
|
||||
public Ele GetHitEle(Color hc)
|
||||
{
|
||||
return EnumAllEle().FirstOrDefault((Ele e) => e.本体.IsHit(ref hc));
|
||||
}
|
||||
|
||||
public List<Par> GetHitPars(Color hc)
|
||||
{
|
||||
return (from e in EnumAllEle()
|
||||
select e.本体.GetHitPars(ref hc)).Aggregate(delegate(List<Par> e0, List<Par> e1)
|
||||
{
|
||||
e0.AddRange(e1);
|
||||
return e0;
|
||||
});
|
||||
}
|
||||
|
||||
public bool IsHit(Color hc)
|
||||
{
|
||||
return EnumAllEle().Any((Ele e) => e.本体.IsHit(ref hc));
|
||||
@@ -9459,10 +9219,6 @@ namespace SlaveMatrix
|
||||
select e.大顎上);
|
||||
}
|
||||
|
||||
public void Set染み位置()
|
||||
{
|
||||
}
|
||||
|
||||
public void Join()
|
||||
{
|
||||
Ele[] array = Elements;
|
||||
@@ -9920,11 +9676,6 @@ namespace SlaveMatrix
|
||||
return 膣口位置.DistanceSquared(Cha.CP) < r10;
|
||||
}
|
||||
|
||||
public bool Is口部()
|
||||
{
|
||||
return 口腔位置.DistanceSquared(Cha.CP) < r35;
|
||||
}
|
||||
|
||||
public bool Is胸部()
|
||||
{
|
||||
return 胸部位置.DistanceSquared(Cha.CP) < r17;
|
||||
@@ -9948,51 +9699,6 @@ namespace SlaveMatrix
|
||||
return true;
|
||||
}
|
||||
|
||||
public void 口腔接続()
|
||||
{
|
||||
腰.接続PA();
|
||||
胴.接続PA();
|
||||
胸.接続PA();
|
||||
首.接続PA();
|
||||
頭.接続PA();
|
||||
}
|
||||
|
||||
public void 性器接続()
|
||||
{
|
||||
腰.接続PA();
|
||||
if (Is獣)
|
||||
{
|
||||
胸_獣.接続PA();
|
||||
胴_獣.接続PA();
|
||||
腰_獣.接続PA();
|
||||
}
|
||||
性器.接続PA();
|
||||
}
|
||||
|
||||
public void 肛門接続()
|
||||
{
|
||||
腰.接続PA();
|
||||
if (Is獣)
|
||||
{
|
||||
胸_獣.接続PA();
|
||||
胴_獣.接続PA();
|
||||
腰_獣.接続PA();
|
||||
}
|
||||
肛門.接続PA();
|
||||
}
|
||||
|
||||
public void 出糸接続()
|
||||
{
|
||||
foreach (Ele item in 腰.EnumEle())
|
||||
{
|
||||
item.接続PA();
|
||||
if (item is 尾_蜘)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void 腕前後(bool 右, int n, bool value)
|
||||
{
|
||||
if (右)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Threading.Tasks;
|
||||
using _2DGAMELIB;
|
||||
using SlaveMatrix.GameClasses;
|
||||
@@ -33,48 +34,43 @@ namespace SlaveMatrix
|
||||
|
||||
protected GeneratorType 系統;
|
||||
|
||||
protected Func<Unit> g;
|
||||
|
||||
public int Count => Buf.Count;
|
||||
|
||||
public Generator(int Capacity, GeneratorType genType)
|
||||
{
|
||||
this.Capacity = Capacity;
|
||||
this.系統 = genType;
|
||||
switch (genType)
|
||||
{
|
||||
case GeneratorType.Bird:
|
||||
g = GetBird;
|
||||
break;
|
||||
case GeneratorType.Snake:
|
||||
g = GetSnake;
|
||||
break;
|
||||
case GeneratorType.Beast:
|
||||
g = GetBeast;
|
||||
break;
|
||||
case GeneratorType.Aquatic:
|
||||
g = GetAquatic;
|
||||
break;
|
||||
case GeneratorType.Insect:
|
||||
g = GetInsect;
|
||||
break;
|
||||
case GeneratorType.Humanoid:
|
||||
g = GetHumanoid;
|
||||
break;
|
||||
case GeneratorType.幻獣:
|
||||
g = Get幻獣;
|
||||
break;
|
||||
case GeneratorType.魔獣:
|
||||
g = Get魔獣;
|
||||
break;
|
||||
case GeneratorType.Dragon:
|
||||
g = GetDragon;
|
||||
break;
|
||||
}
|
||||
Refresh();
|
||||
}
|
||||
|
||||
private static Unit Generate(ChaD ChaD1, ChaD ChaD2, int 妊娠進行期間, string 種族)
|
||||
public Unit gen()
|
||||
{
|
||||
switch (系統)
|
||||
{
|
||||
case GeneratorType.Bird:
|
||||
return GetBird();
|
||||
case GeneratorType.Snake:
|
||||
return GetSnake();
|
||||
case GeneratorType.Beast:
|
||||
return GetBeast();
|
||||
case GeneratorType.Aquatic:
|
||||
return GetAquatic();
|
||||
case GeneratorType.Insect:
|
||||
return GetInsect();
|
||||
case GeneratorType.Humanoid:
|
||||
return GetHumanoid();
|
||||
case GeneratorType.幻獣:
|
||||
return Get幻獣();
|
||||
case GeneratorType.魔獣:
|
||||
return Get魔獣();
|
||||
case GeneratorType.Dragon:
|
||||
return GetDragon();
|
||||
}
|
||||
|
||||
return GetHumanoid();
|
||||
}
|
||||
|
||||
private static Unit Generate(ChaD ChaD1, ChaD ChaD2, int 妊娠進行期間, string 種族)
|
||||
{
|
||||
妊娠進行期間 = (int)((double)妊娠進行期間 * 0.5).Clamp(0.0, 5.0);
|
||||
Unit unit = GetUnit(ChaD1, 妊娠進行期間, 種族).Mix(GetUnit(ChaD2, 妊娠進行期間, 種族), 原種モード: true);
|
||||
@@ -362,7 +358,7 @@ namespace SlaveMatrix
|
||||
Unit[] a = new Unit[Capacity];
|
||||
|
||||
for (int i = 0; i < Capacity; i++)
|
||||
a[i] = g();
|
||||
a[i] = gen();
|
||||
/*
|
||||
Parallel.For(0, Capacity, Sta.po3, delegate(int i)
|
||||
{
|
||||
@@ -379,7 +375,7 @@ namespace SlaveMatrix
|
||||
Buf.Capacity = Capacity;
|
||||
Unit[] a = new Unit[Capacity];
|
||||
for (int i = 0; i < Capacity; i++)
|
||||
a[i] = g();
|
||||
a[i] = gen();
|
||||
/*
|
||||
Parallel.For(0, Capacity, Sta.po3, delegate(int i)
|
||||
{
|
||||
@@ -412,92 +408,5 @@ namespace SlaveMatrix
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static IEnumerable<Unit> EnumAllMonster()
|
||||
{
|
||||
yield return Generate(SpeciesDefaults.GetHarpy(), SpeciesDefaults.GetHarpy(), 2, GameText.ハーピー);
|
||||
yield return Generate(SpeciesDefaults.Getハルピュイア(), SpeciesDefaults.Getハルピュイア(), 2, GameText.ハルピュイア);
|
||||
yield return Generate(SpeciesDefaults.GetPhoenix(), SpeciesDefaults.GetPhoenix(), 4, GameText.フェニックス);
|
||||
yield return Generate(SpeciesDefaults.Getラミア(), SpeciesDefaults.Getラミア(), 2, GameText.ラミア);
|
||||
yield return Generate(SpeciesDefaults.Getヒュドラ(), SpeciesDefaults.Getヒュドラ(), 3, GameText.ヒュドラ);
|
||||
yield return Generate(SpeciesDefaults.Getエキドナ(), SpeciesDefaults.Getエキドナ(), 3, GameText.エキドナ);
|
||||
yield return Generate(SpeciesDefaults.Getウロボロス(), SpeciesDefaults.Getウロボロス(), 4, GameText.ウロボロス);
|
||||
yield return Generate(SpeciesDefaults.Getウェアキャット(), SpeciesDefaults.Getウェアキャット(), 2, GameText.ウェアキャット);
|
||||
yield return Generate(SpeciesDefaults.Getウェアウルフ(), SpeciesDefaults.Getウェアウルフ(), 2, GameText.ウェアウルフ);
|
||||
yield return Generate(SpeciesDefaults.Getウェアフォックス(), SpeciesDefaults.Getウェアフォックス(), 2, GameText.ウェアフォックス);
|
||||
yield return Generate(SpeciesDefaults.Getミノタウロス(), SpeciesDefaults.Getミノタウロス(), 2, GameText.ミノタウロス);
|
||||
yield return Generate(SpeciesDefaults.Getアフール(), SpeciesDefaults.Getアフール(), 2, GameText.アフール);
|
||||
yield return Generate(SpeciesDefaults.Getオノケンタウレ(), SpeciesDefaults.Getオノケンタウレ(), 2, GameText.オノケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getヒッポケンタウレ(), SpeciesDefaults.Getヒッポケンタウレ(), 3, GameText.ヒッポケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getブケンタウレ(), SpeciesDefaults.Getブケンタウレ(), 3, GameText.ブケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getカプラケンタウレ(), SpeciesDefaults.Getカプラケンタウレ(), 3, GameText.カプラケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getレオントケンタウレ(), SpeciesDefaults.Getレオントケンタウレ(), 3, GameText.レオントケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getティグリスケンタウレ(), SpeciesDefaults.Getティグリスケンタウレ(), 3, GameText.ティグリスケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getパンテーラケンタウレ(), SpeciesDefaults.Getパンテーラケンタウレ(), 3, GameText.パンテーラケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getチータケンタウレ(), SpeciesDefaults.Getチータケンタウレ(), 3, GameText.チータケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getカッパ(), SpeciesDefaults.Getカッパ(), 2, GameText.カッパ);
|
||||
yield return Generate(SpeciesDefaults.Getマーメイド(), SpeciesDefaults.Getマーメイド(), 2, GameText.マーメイド);
|
||||
yield return Generate(SpeciesDefaults.Getオールドマーメイド(), SpeciesDefaults.Getオールドマーメイド(), 2, GameText.オールドマーメイド);
|
||||
yield return Generate(SpeciesDefaults.Getドルフィンマーメイド(), SpeciesDefaults.Getドルフィンマーメイド(), 2, GameText.ドルフィンマーメイド);
|
||||
bool b = RNG.XS.NextBool();
|
||||
yield return Generate(SpeciesDefaults.Getイクテュオケンタウレ(b), SpeciesDefaults.Getイクテュオケンタウレ(b), 3, GameText.イクテュオケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getデルピヌスケンタウレ(), SpeciesDefaults.Getデルピヌスケンタウレ(), 3, GameText.デルピヌスケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getシーラミア(), SpeciesDefaults.Getシーラミア(), 2, GameText.シーラミア);
|
||||
int num = RNG.XS.Next(3);
|
||||
yield return Generate(SpeciesDefaults.Getセイレーン(num), SpeciesDefaults.Getセイレーン(num), 2, GameText.セイレーン);
|
||||
yield return Generate(SpeciesDefaults.Getスキュラ(), SpeciesDefaults.Getスキュラ(), 2, GameText.スキュラ);
|
||||
yield return Generate(SpeciesDefaults.Getカリュブディス(), SpeciesDefaults.Getカリュブディス(), 3, GameText.カリュブディス);
|
||||
yield return Generate(SpeciesDefaults.Getクラーケン(), SpeciesDefaults.Getクラーケン(), 3, GameText.クラーケン);
|
||||
b = RNG.XS.NextBool();
|
||||
yield return Generate(SpeciesDefaults.Getオールドスキュラ(b), SpeciesDefaults.Getオールドスキュラ(b), 4, GameText.オールドスキュラ);
|
||||
yield return Generate(SpeciesDefaults.Getウェアマンティス(), SpeciesDefaults.Getウェアマンティス(), 1, GameText.ウェアマンティス);
|
||||
yield return Generate(SpeciesDefaults.Getウェアドラゴンフライ(), SpeciesDefaults.Getウェアドラゴンフライ(), 1, GameText.ウェアドラゴンフライ);
|
||||
yield return Generate(SpeciesDefaults.Getウェアビートル(), SpeciesDefaults.Getウェアビートル(), 1, GameText.ウェアビートル);
|
||||
yield return Generate(SpeciesDefaults.Getウェアスタッグビートル(), SpeciesDefaults.Getウェアスタッグビートル(), 1, GameText.ウェアスタッグビートル);
|
||||
b = RNG.XS.NextBool();
|
||||
yield return Generate(SpeciesDefaults.Getアラクネ(b), SpeciesDefaults.Getアラクネ(b), 2, GameText.アラクネ);
|
||||
yield return Generate(SpeciesDefaults.Getギルタブリル(), SpeciesDefaults.Getギルタブリル(), 2, GameText.ギルタブリル);
|
||||
yield return Generate(SpeciesDefaults.Getギルタブルル(), SpeciesDefaults.Getギルタブルル(), 2, GameText.ギルタブルル);
|
||||
yield return Generate(SpeciesDefaults.Getムカデジョウロウ(), SpeciesDefaults.Getムカデジョウロウ(), 2, GameText.ムカデジョウロウ);
|
||||
yield return Generate(SpeciesDefaults.Getサンドワーム(), SpeciesDefaults.Getサンドワーム(), 2, GameText.サンドワーム);
|
||||
b = RNG.XS.NextBool();
|
||||
bool b2 = RNG.XS.NextBool();
|
||||
yield return Generate(SpeciesDefaults.Getフェアリー(b, b2), SpeciesDefaults.Getフェアリー(b, b2), 1, GameText.フェアリー);
|
||||
yield return Generate(SpeciesDefaults.Getリリン(), SpeciesDefaults.Getリリン(), 2, GameText.リリン);
|
||||
yield return Generate(SpeciesDefaults.Getエルフ(), SpeciesDefaults.Getエルフ(), 2, GameText.エルフ);
|
||||
yield return Generate(SpeciesDefaults.Getドワーフ(), SpeciesDefaults.Getドワーフ(), 2, GameText.ドワーフ);
|
||||
b = RNG.XS.NextBool();
|
||||
yield return Generate(SpeciesDefaults.Getオーグリス(b), SpeciesDefaults.Getオーグリス(b), 2, GameText.オーグリス);
|
||||
yield return Generate(SpeciesDefaults.Getサイクロプス(), SpeciesDefaults.Getサイクロプス(), 2, GameText.サイクロプス);
|
||||
yield return Generate(SpeciesDefaults.Getデビル(), SpeciesDefaults.Getデビル(), 2, GameText.デビル);
|
||||
b = RNG.XS.NextBool();
|
||||
yield return Generate(SpeciesDefaults.Getエンジェル(b), SpeciesDefaults.Getエンジェル(b), 2, GameText.エンジェル);
|
||||
yield return Generate(SpeciesDefaults.Getサキュバス(), SpeciesDefaults.Getサキュバス(), 2, GameText.サキュバス);
|
||||
yield return Generate(SpeciesDefaults.Getアルラウネ(), SpeciesDefaults.Getアルラウネ(), 2, GameText.アルラウネ);
|
||||
yield return Generate(SpeciesDefaults.Getスライム(), SpeciesDefaults.Getスライム(), 0, GameText.スライム);
|
||||
yield return Generate(SpeciesDefaults.Getエイリアン(), SpeciesDefaults.Getエイリアン(), 3, GameText.エイリアン);
|
||||
yield return Generate(SpeciesDefaults.Getカーバンクル(), SpeciesDefaults.Getカーバンクル(), 2, GameText.カーバンクル);
|
||||
yield return Generate(SpeciesDefaults.Getペガサス(), SpeciesDefaults.Getペガサス(), 3, GameText.ペガサス);
|
||||
yield return Generate(SpeciesDefaults.Getユニコーン(), SpeciesDefaults.Getユニコーン(), 3, GameText.ユニコーン);
|
||||
yield return Generate(SpeciesDefaults.Getバイコーン(), SpeciesDefaults.Getバイコーン(), 3, GameText.バイコーン);
|
||||
yield return Generate(SpeciesDefaults.Getアリコーン(), SpeciesDefaults.Getアリコーン(), 3, GameText.アリコーン);
|
||||
yield return Generate(SpeciesDefaults.Getグリフォン(), SpeciesDefaults.Getグリフォン(), 3, GameText.グリフォン);
|
||||
yield return Generate(SpeciesDefaults.Getモノケロス(), SpeciesDefaults.Getモノケロス(), 3, GameText.モノケロス);
|
||||
yield return Generate(SpeciesDefaults.Getヒッポグリフ(), SpeciesDefaults.Getヒッポグリフ(), 3, GameText.ヒッポグリフ);
|
||||
yield return Generate(SpeciesDefaults.Getキマイラ(), SpeciesDefaults.Getキマイラ(), 3, GameText.キマイラ);
|
||||
b = RNG.XS.NextBool();
|
||||
yield return Generate(SpeciesDefaults.Getスフィンクス(b), SpeciesDefaults.Getスフィンクス(b), 3, GameText.スフィンクス);
|
||||
yield return Generate(SpeciesDefaults.Getカトブレパス(), SpeciesDefaults.Getカトブレパス(), 3, GameText.カトブレパス);
|
||||
yield return Generate(SpeciesDefaults.Getバジリスク(), SpeciesDefaults.Getバジリスク(), 3, GameText.バジリスク);
|
||||
yield return Generate(SpeciesDefaults.Getコカトリス(), SpeciesDefaults.Getコカトリス(), 3, GameText.コカトリス);
|
||||
yield return Generate(SpeciesDefaults.Getゴルゴン(), SpeciesDefaults.Getゴルゴン(), 3, GameText.ゴルゴン);
|
||||
yield return Generate(SpeciesDefaults.Getリザードマン(), SpeciesDefaults.Getリザードマン(), 2, GameText.リザードマン);
|
||||
yield return Generate(SpeciesDefaults.Getドラゴニュート(), SpeciesDefaults.Getドラゴニュート(), 3, GameText.ドラゴニュート);
|
||||
yield return Generate(SpeciesDefaults.Getワーム(), SpeciesDefaults.Getワーム(), 4, GameText.ワーム);
|
||||
yield return Generate(SpeciesDefaults.Getリュウ(), SpeciesDefaults.Getリュウ(), 5, GameText.リュウ);
|
||||
yield return Generate(SpeciesDefaults.Getワイバーン(), SpeciesDefaults.Getワイバーン(), 4, GameText.ワイバーン);
|
||||
yield return Generate(SpeciesDefaults.Getドラコケンタウレ(), SpeciesDefaults.Getドラコケンタウレ(), 4, GameText.ドラコケンタウレ);
|
||||
yield return Generate(SpeciesDefaults.Getドラゴン(), SpeciesDefaults.Getドラゴン(), 5, GameText.ドラゴン);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -483,14 +483,6 @@ namespace SlaveMatrix
|
||||
}
|
||||
}
|
||||
|
||||
public static void SwitchMode(this Med Med, string Mode, Are Are)
|
||||
{
|
||||
Med.Mode = Mode;
|
||||
Med.DrawStart(Are);
|
||||
Med.DrawEnd(BlackBackground);
|
||||
sta = true;
|
||||
}
|
||||
|
||||
public static void SwitchMode(this Med Med, string Mode, Are Are, Action<Are, FPS> 描画)
|
||||
{
|
||||
Med.Mode = Mode;
|
||||
|
||||
@@ -4218,82 +4218,6 @@ namespace SlaveMatrix
|
||||
Cha.Bod.触覚右.角度C = (0.0 - a) * RNG.XS.NextDouble();
|
||||
}
|
||||
|
||||
public static void 触覚甲左(this Cha Cha, double u1, double u2, double 根本角度, double 節角度)
|
||||
{
|
||||
Cha.Bod.触覚甲左.SetAngle0();
|
||||
Cha.Bod.触覚甲左.X0Y0_節0.AngleBase += 根本角度 + u1;
|
||||
Cha.Bod.触覚甲左.X0Y0_節1.AngleBase += 節角度 + u2;
|
||||
}
|
||||
|
||||
public static void 触覚甲右(this Cha Cha, double u1, double u2, double 根本角度, double 節角度)
|
||||
{
|
||||
Cha.Bod.触覚甲右.SetAngle0();
|
||||
Cha.Bod.触覚甲右.X0Y0_節0.AngleBase += 0.0 - 根本角度 + (0.0 - u1);
|
||||
Cha.Bod.触覚甲右.X0Y0_節1.AngleBase += 0.0 - 節角度 + (0.0 - u2);
|
||||
}
|
||||
|
||||
public static void 触覚甲_基本左(this Cha Cha, double u1, double u2)
|
||||
{
|
||||
Cha.触覚甲左(u1, u2, 0.0, 0.0);
|
||||
}
|
||||
|
||||
public static void 触覚甲_基本右(this Cha Cha, double u1, double u2)
|
||||
{
|
||||
Cha.触覚甲右(u1, u2, 0.0, 0.0);
|
||||
}
|
||||
|
||||
public static void 触覚甲_ピーン左(this Cha Cha, double u1, double u2)
|
||||
{
|
||||
Cha.触覚甲左(u1, u2, 20.0, -25.0);
|
||||
}
|
||||
|
||||
public static void 触覚甲_ピーン右(this Cha Cha, double u1, double u2)
|
||||
{
|
||||
Cha.触覚甲右(u1, u2, 20.0, -25.0);
|
||||
}
|
||||
|
||||
public static void 触覚甲_萎縮左(this Cha Cha, double u1, double u2)
|
||||
{
|
||||
Cha.触覚甲左(u1, u2, -80.0, 100.0);
|
||||
}
|
||||
|
||||
public static void 触覚甲_萎縮右(this Cha Cha, double u1, double u2)
|
||||
{
|
||||
Cha.触覚甲右(u1, u2, -80.0, 100.0);
|
||||
}
|
||||
|
||||
public static void 触覚甲左_0(this Cha c, int i, double u1, double u2)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
c.触覚甲_基本左(u1, u2);
|
||||
break;
|
||||
case 1:
|
||||
c.触覚甲_ピーン左(u1, u2);
|
||||
break;
|
||||
case 2:
|
||||
c.触覚甲_萎縮左(u1, u2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public static void 触覚甲右_0(this Cha c, int i, double u1, double u2)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
c.触覚甲_基本右(u1, u2);
|
||||
break;
|
||||
case 1:
|
||||
c.触覚甲_ピーン右(u1, u2);
|
||||
break;
|
||||
case 2:
|
||||
c.触覚甲_萎縮右(u1, u2);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public static void 触覚甲絶頂(this Cha Cha, double a)
|
||||
{
|
||||
Cha.Bod.触覚甲左.角度C = a * RNG.XS.NextDouble();
|
||||
@@ -4904,27 +4828,6 @@ namespace SlaveMatrix
|
||||
}
|
||||
}
|
||||
|
||||
public static void 両腕_人_腕上げ(this Cha Cha, int n, bool 左右, bool 前後)
|
||||
{
|
||||
double u = Cha.角度ムラ(RNG.XS.NextSign(), 3.0, RNG.XS.NextSign(), 1.5);
|
||||
double u2 = Cha.角度ムラ(RNG.XS.NextSign(), 3.0, RNG.XS.NextSign(), 1.5);
|
||||
double u3 = Cha.角度ムラ(RNG.XS.NextSign(), 3.0, RNG.XS.NextSign(), 1.5);
|
||||
double u4 = Cha.角度ムラ(RNG.XS.NextSign(), 3.0, RNG.XS.NextSign(), 1.5);
|
||||
Cha.Bod.腕左右前後 = 前後;
|
||||
Cha.腕_人_腕上げ右(n, u, u2, u3, u4);
|
||||
Cha.腕_人_腕上げ左(n, u, u2, u3, u4);
|
||||
if (左右)
|
||||
{
|
||||
Cha.腕_人_腕上げ右(n, u, u2, u3, u4);
|
||||
Cha.腕_人_腕上げ左(n, u, u2, u3, u4);
|
||||
}
|
||||
else
|
||||
{
|
||||
Cha.腕_人_腕上げ左(n, u, u2, u3, u4);
|
||||
Cha.腕_人_腕上げ右(n, u, u2, u3, u4);
|
||||
}
|
||||
}
|
||||
|
||||
public static void 両腕人_0(this Cha Cha, int n, bool 前後, bool 同角, bool 左右, int i1, int i2)
|
||||
{
|
||||
Cha.Bod.腕左右前後 = 前後;
|
||||
@@ -8627,11 +8530,6 @@ namespace SlaveMatrix
|
||||
触手2.重複角度処理();
|
||||
}
|
||||
|
||||
public static void 触手_基本左(this Cha Cha, int n, int s, double u1, double u2, double u3)
|
||||
{
|
||||
Cha.触手左(n, s, u1, u2, u3, 20.0.GetRanAngle(), 0.0);
|
||||
}
|
||||
|
||||
public static void 触手_基本右(this Cha Cha, int n, int s, double u1, double u2, double u3)
|
||||
{
|
||||
Cha.触手右(n, s, u1, u2, u3, 20.0.GetRanAngle(), 0.0);
|
||||
@@ -8647,21 +8545,11 @@ namespace SlaveMatrix
|
||||
Cha.触手右(n, s, u1, u2, u3, 20.0.GetRanAngle(), 0.25, (int i) => 35.0, (int i) => -35.0);
|
||||
}
|
||||
|
||||
public static void 触手_波左(this Cha Cha, int n, int s, double u1, double u2, double u3)
|
||||
{
|
||||
Cha.触手左(n, s, u1, u2, u3, 20.0.GetRanAngle(), 0.25, (int i) => System.Math.Sin(i) * 80.0);
|
||||
}
|
||||
|
||||
public static void 触手_波右(this Cha Cha, int n, int s, double u1, double u2, double u3)
|
||||
{
|
||||
Cha.触手右(n, s, u1, u2, u3, 20.0.GetRanAngle(), 0.25, (int i) => System.Math.Sin(i) * 80.0);
|
||||
}
|
||||
|
||||
public static void 触手_ピーン左(this Cha Cha, int n, int s, double u1, double u2, double u3)
|
||||
{
|
||||
Cha.触手左(n, s, u1, u2, u3, 20.0.GetRanAngle(), 0.0, (int i) => 0.0, (int i) => 25.0.GetRanAngle());
|
||||
}
|
||||
|
||||
public static void 触手_ピーン右(this Cha Cha, int n, int s, double u1, double u2, double u3)
|
||||
{
|
||||
Cha.触手右(n, s, u1, u2, u3, 20.0.GetRanAngle(), 0.0, (int i) => 0.0, (int i) => 25.0.GetRanAngle());
|
||||
@@ -8682,25 +8570,6 @@ namespace SlaveMatrix
|
||||
Cha.触手右_0(i2, n, RNG.XS.NextSign(), Cha.角度ムラ(RNG.XS.NextSign(), 1.5, RNG.XS.NextSign(), 0.25), Cha.角度ムラ(RNG.XS.NextSign(), 1.5, RNG.XS.NextSign(), 0.25), Cha.角度ムラ(RNG.XS.NextSign(), 1.5, RNG.XS.NextSign(), 0.25));
|
||||
}
|
||||
|
||||
public static void 触手左_0(this Cha c, int i, int n, int s, double u1, double u2, double u3)
|
||||
{
|
||||
switch (i)
|
||||
{
|
||||
case 0:
|
||||
c.触手_基本左(n, s, u1, u2, u3);
|
||||
break;
|
||||
case 1:
|
||||
c.触手_S字左(n, s, u1, u2, u3);
|
||||
break;
|
||||
case 2:
|
||||
c.触手_波左(n, s, u1, u2, u3);
|
||||
break;
|
||||
case 3:
|
||||
c.触手_ピーン左(n, s, u1, u2, u3);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public static void 触手右_0(this Cha c, int i, int n, int s, double u1, double u2, double u3)
|
||||
{
|
||||
switch (i)
|
||||
|
||||
@@ -691,30 +691,11 @@ namespace SlaveMatrix
|
||||
return (T)src.FirstOrDefault((Ele e) => e is T && e.右 == 右);
|
||||
}
|
||||
|
||||
public static T GetEle<T>(this IEnumerable<Ele> src, Func<T, bool> con) where T : Ele
|
||||
{
|
||||
if (src == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return (T)src.FirstOrDefault((Ele e) => e is T && con((T)e));
|
||||
}
|
||||
|
||||
public static IEnumerable<T> GetEles<T>(this IEnumerable<Ele> src) where T : Ele
|
||||
{
|
||||
return src?.Where((Ele e) => e is T).Cast<T>();
|
||||
}
|
||||
|
||||
public static IEnumerable<T> GetEles<T>(this IEnumerable<Ele> src, bool 右) where T : Ele
|
||||
{
|
||||
return src?.Where((Ele e) => e is T && e.右 == 右).Cast<T>();
|
||||
}
|
||||
|
||||
public static IEnumerable<T> GetEles<T>(this IEnumerable<Ele> src, Func<T, bool> con) where T : Ele
|
||||
{
|
||||
return src?.Where((Ele e) => e is T && con((T)e)).Cast<T>();
|
||||
}
|
||||
|
||||
public static void SetEle<T>(this IEnumerable<Ele> src, Action<T> a) where T : Ele
|
||||
{
|
||||
T ele = src.GetEle<T>();
|
||||
@@ -778,48 +759,6 @@ namespace SlaveMatrix
|
||||
}
|
||||
}
|
||||
|
||||
public static T GetEleL<T>(this IEnumerable<Ele> src) where T : Ele
|
||||
{
|
||||
if (src == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return (T)src.LastOrDefault((Ele e) => e is T);
|
||||
}
|
||||
|
||||
public static T GetEleL<T>(this IEnumerable<Ele> src, bool 右) where T : Ele
|
||||
{
|
||||
if (src == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return (T)src.LastOrDefault((Ele e) => e is T && e.右 == 右);
|
||||
}
|
||||
|
||||
public static T GetEleL<T>(this IEnumerable<Ele> src, Func<T, bool> con) where T : Ele
|
||||
{
|
||||
if (src == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return (T)src.LastOrDefault((Ele e) => e is T && con((T)e));
|
||||
}
|
||||
|
||||
public static IEnumerable<T> GetElesL<T>(this IEnumerable<Ele> src) where T : Ele
|
||||
{
|
||||
return src?.Where((Ele e) => e is T).Cast<T>();
|
||||
}
|
||||
|
||||
public static IEnumerable<T> GetElesL<T>(this IEnumerable<Ele> src, bool 右) where T : Ele
|
||||
{
|
||||
return src?.Where((Ele e) => e is T && e.右 == 右).Cast<T>();
|
||||
}
|
||||
|
||||
public static IEnumerable<T> GetElesL<T>(this IEnumerable<Ele> src, Func<T, bool> con) where T : Ele
|
||||
{
|
||||
return src?.Where((Ele e) => e is T && con((T)e)).Cast<T>();
|
||||
}
|
||||
|
||||
public static void 描画0(this IEnumerable<Ele> es, Are Are)
|
||||
{
|
||||
foreach (Ele e in es)
|
||||
@@ -878,16 +817,6 @@ namespace SlaveMatrix
|
||||
return (ConnectionInfo)Enum.Parse(接続情報t, s);
|
||||
}
|
||||
|
||||
public static object GetField(this Type Type, object Object, string Name)
|
||||
{
|
||||
return Type.GetField(Name, bf).GetValue(Object);
|
||||
}
|
||||
|
||||
public static object GetProperty(this Type Type, object Object, string Name)
|
||||
{
|
||||
return Type.GetProperty(Name, bf).GetValue(Object, null);
|
||||
}
|
||||
|
||||
public static Color BlendP1(this Color Cd, Color Cs)
|
||||
{
|
||||
double num = (double)(int)Cd.A / 255.0;
|
||||
|
||||
@@ -2113,10 +2113,6 @@ namespace SlaveMatrix
|
||||
PlayerStamina.Leave();
|
||||
}
|
||||
|
||||
public TrainingUI()
|
||||
{
|
||||
}
|
||||
|
||||
public TrainingUI(Med Med, Are Are, InfoPanel ip)
|
||||
{
|
||||
TrainingUI 調教UI2 = this;
|
||||
|
||||
Reference in New Issue
Block a user