using _2DGAMELIB;

namespace SlaveMatrix
{
    public class 噴乳 : Ele
    {
    	public ShapePart X0Y0_母乳垂れ1;

    	public ShapePart X0Y0_母乳垂れ2;

    	public ShapePart X0Y1_母乳1;

    	public ShapePart X0Y1_母乳2;

    	public ShapePart X0Y1_母乳3;

    	public ShapePart X0Y1_母乳4;

    	public ShapePart X0Y1_母乳垂れ1;

    	public ShapePart X0Y1_母乳垂れ2;

    	public ShapePart X0Y2_母乳1;

    	public ShapePart X0Y2_母乳2;

    	public ShapePart X0Y2_母乳3;

    	public ShapePart X0Y2_母乳4;

    	public ShapePart X0Y2_母乳垂れ1;

    	public ShapePart X0Y2_母乳垂れ2;

    	public ShapePart X0Y3_母乳1;

    	public ShapePart X0Y3_母乳2;

    	public ShapePart X0Y3_母乳3;

    	public ShapePart X0Y3_母乳4;

    	public ShapePart X0Y3_母乳垂れ1;

    	public ShapePart X0Y3_母乳垂れ2;

    	public ShapePart X0Y4_母乳1;

    	public ShapePart X0Y4_母乳2;

    	public ShapePart X0Y4_母乳3;

    	public ShapePart X0Y4_母乳4;

    	public ShapePart X0Y4_母乳垂れ1;

    	public ShapePart X0Y4_母乳垂れ2;

    	public ShapePart X0Y5_母乳1;

    	public ShapePart X0Y5_母乳2;

    	public ShapePart X0Y5_母乳3;

    	public ShapePart X0Y5_母乳4;

    	public ShapePart X0Y5_母乳垂れ1;

    	public ShapePart X0Y5_母乳垂れ2;

    	public ColorD 母乳1CD;

    	public ColorD 母乳2CD;

    	public ColorD 母乳3CD;

    	public ColorD 母乳4CD;

    	public ColorD 母乳垂れ1CD;

    	public ColorD 母乳垂れ2CD;

    	public ColorP X0Y0_母乳垂れ1CP;

    	public ColorP X0Y0_母乳垂れ2CP;

    	public ColorP X0Y1_母乳1CP;

    	public ColorP X0Y1_母乳2CP;

    	public ColorP X0Y1_母乳3CP;

    	public ColorP X0Y1_母乳4CP;

    	public ColorP X0Y1_母乳垂れ1CP;

    	public ColorP X0Y1_母乳垂れ2CP;

    	public ColorP X0Y2_母乳1CP;

    	public ColorP X0Y2_母乳2CP;

    	public ColorP X0Y2_母乳3CP;

    	public ColorP X0Y2_母乳4CP;

    	public ColorP X0Y2_母乳垂れ1CP;

    	public ColorP X0Y2_母乳垂れ2CP;

    	public ColorP X0Y3_母乳1CP;

    	public ColorP X0Y3_母乳2CP;

    	public ColorP X0Y3_母乳3CP;

    	public ColorP X0Y3_母乳4CP;

    	public ColorP X0Y3_母乳垂れ1CP;

    	public ColorP X0Y3_母乳垂れ2CP;

    	public ColorP X0Y4_母乳1CP;

    	public ColorP X0Y4_母乳2CP;

    	public ColorP X0Y4_母乳3CP;

    	public ColorP X0Y4_母乳4CP;

    	public ColorP X0Y4_母乳垂れ1CP;

    	public ColorP X0Y4_母乳垂れ2CP;

    	public ColorP X0Y5_母乳1CP;

    	public ColorP X0Y5_母乳2CP;

    	public ColorP X0Y5_母乳3CP;

    	public ColorP X0Y5_母乳4CP;

    	public ColorP X0Y5_母乳垂れ1CP;

    	public ColorP X0Y5_母乳垂れ2CP;

    	public override bool 欠損
    	{
    		get
    		{
    			return 欠損_;
    		}
    		set
    		{
    			欠損_ = value;
    		}
    	}

    	public override bool 筋肉
    	{
    		get
    		{
    			return 筋肉_;
    		}
    		set
    		{
    			筋肉_ = value;
    		}
    	}

    	public override bool 拘束
    	{
    		get
    		{
    			return 拘束_;
    		}
    		set
    		{
    			拘束_ = value;
    		}
    	}

    	public bool 母乳垂れ1_表示
    	{
    		get
    		{
    			return X0Y0_母乳垂れ1.Dra;
    		}
    		set
    		{
    			X0Y0_母乳垂れ1.Dra = value;
    			X0Y1_母乳垂れ1.Dra = value;
    			X0Y2_母乳垂れ1.Dra = value;
    			X0Y3_母乳垂れ1.Dra = value;
    			X0Y4_母乳垂れ1.Dra = value;
    			X0Y5_母乳垂れ1.Dra = value;
    			X0Y0_母乳垂れ1.Hit = value;
    			X0Y1_母乳垂れ1.Hit = value;
    			X0Y2_母乳垂れ1.Hit = value;
    			X0Y3_母乳垂れ1.Hit = value;
    			X0Y4_母乳垂れ1.Hit = value;
    			X0Y5_母乳垂れ1.Hit = value;
    		}
    	}

    	public bool 母乳垂れ2_表示
    	{
    		get
    		{
    			return X0Y0_母乳垂れ2.Dra;
    		}
    		set
    		{
    			X0Y0_母乳垂れ2.Dra = value;
    			X0Y1_母乳垂れ2.Dra = value;
    			X0Y2_母乳垂れ2.Dra = value;
    			X0Y3_母乳垂れ2.Dra = value;
    			X0Y4_母乳垂れ2.Dra = value;
    			X0Y5_母乳垂れ2.Dra = value;
    			X0Y0_母乳垂れ2.Hit = value;
    			X0Y1_母乳垂れ2.Hit = value;
    			X0Y2_母乳垂れ2.Hit = value;
    			X0Y3_母乳垂れ2.Hit = value;
    			X0Y4_母乳垂れ2.Hit = value;
    			X0Y5_母乳垂れ2.Hit = value;
    		}
    	}

    	public bool 母乳1_表示
    	{
    		get
    		{
    			return X0Y1_母乳1.Dra;
    		}
    		set
    		{
    			X0Y1_母乳1.Dra = value;
    			X0Y2_母乳1.Dra = value;
    			X0Y3_母乳1.Dra = value;
    			X0Y4_母乳1.Dra = value;
    			X0Y5_母乳1.Dra = value;
    			X0Y1_母乳1.Hit = value;
    			X0Y2_母乳1.Hit = value;
    			X0Y3_母乳1.Hit = value;
    			X0Y4_母乳1.Hit = value;
    			X0Y5_母乳1.Hit = value;
    		}
    	}

    	public bool 母乳2_表示
    	{
    		get
    		{
    			return X0Y1_母乳2.Dra;
    		}
    		set
    		{
    			X0Y1_母乳2.Dra = value;
    			X0Y2_母乳2.Dra = value;
    			X0Y3_母乳2.Dra = value;
    			X0Y4_母乳2.Dra = value;
    			X0Y5_母乳2.Dra = value;
    			X0Y1_母乳2.Hit = value;
    			X0Y2_母乳2.Hit = value;
    			X0Y3_母乳2.Hit = value;
    			X0Y4_母乳2.Hit = value;
    			X0Y5_母乳2.Hit = value;
    		}
    	}

    	public bool 母乳3_表示
    	{
    		get
    		{
    			return X0Y1_母乳3.Dra;
    		}
    		set
    		{
    			X0Y1_母乳3.Dra = value;
    			X0Y2_母乳3.Dra = value;
    			X0Y3_母乳3.Dra = value;
    			X0Y4_母乳3.Dra = value;
    			X0Y5_母乳3.Dra = value;
    			X0Y1_母乳3.Hit = value;
    			X0Y2_母乳3.Hit = value;
    			X0Y3_母乳3.Hit = value;
    			X0Y4_母乳3.Hit = value;
    			X0Y5_母乳3.Hit = value;
    		}
    	}

    	public bool 母乳4_表示
    	{
    		get
    		{
    			return X0Y1_母乳4.Dra;
    		}
    		set
    		{
    			X0Y1_母乳4.Dra = value;
    			X0Y2_母乳4.Dra = value;
    			X0Y3_母乳4.Dra = value;
    			X0Y4_母乳4.Dra = value;
    			X0Y5_母乳4.Dra = value;
    			X0Y1_母乳4.Hit = value;
    			X0Y2_母乳4.Hit = value;
    			X0Y3_母乳4.Hit = value;
    			X0Y4_母乳4.Hit = value;
    			X0Y5_母乳4.Hit = value;
    		}
    	}

    	public override bool 表示
    	{
    		get
    		{
    			return 母乳垂れ1_表示;
    		}
    		set
    		{
    			母乳垂れ1_表示 = value;
    			母乳垂れ2_表示 = value;
    			母乳1_表示 = value;
    			母乳2_表示 = value;
    			母乳3_表示 = value;
    			母乳4_表示 = value;
    		}
    	}

    	public override double Intensity
    	{
    		get
    		{
    			return 母乳1CD.不透明度;
    		}
    		set
    		{
    			母乳1CD.不透明度 = value;
    			母乳2CD.不透明度 = value;
    			母乳3CD.不透明度 = value;
    			母乳4CD.不透明度 = value;
    			母乳垂れ1CD.不透明度 = value;
    			母乳垂れ2CD.不透明度 = value;
    		}
    	}

    	public 噴乳(double DisUnit, 配色指定 配色指定, BodyColorSet 体配色, ModeEventDispatcher Med, 噴乳D e)
    	{
    		ThisType = GetType();
    		Body = new Difs(Sta.胴体["噴乳左"]);
    		PartGroup partGroup = Body[0][0];
    		X0Y0_母乳垂れ1 = partGroup["母乳垂れ1"].ToPar();
    		X0Y0_母乳垂れ2 = partGroup["母乳垂れ2"].ToPar();
    		partGroup = Body[0][1];
    		X0Y1_母乳1 = partGroup["母乳1"].ToPar();
    		X0Y1_母乳2 = partGroup["母乳2"].ToPar();
    		X0Y1_母乳3 = partGroup["母乳3"].ToPar();
    		X0Y1_母乳4 = partGroup["母乳4"].ToPar();
    		X0Y1_母乳垂れ1 = partGroup["母乳垂れ1"].ToPar();
    		X0Y1_母乳垂れ2 = partGroup["母乳垂れ2"].ToPar();
    		partGroup = Body[0][2];
    		X0Y2_母乳1 = partGroup["母乳1"].ToPar();
    		X0Y2_母乳2 = partGroup["母乳2"].ToPar();
    		X0Y2_母乳3 = partGroup["母乳3"].ToPar();
    		X0Y2_母乳4 = partGroup["母乳4"].ToPar();
    		X0Y2_母乳垂れ1 = partGroup["母乳垂れ1"].ToPar();
    		X0Y2_母乳垂れ2 = partGroup["母乳垂れ2"].ToPar();
    		partGroup = Body[0][3];
    		X0Y3_母乳1 = partGroup["母乳1"].ToPar();
    		X0Y3_母乳2 = partGroup["母乳2"].ToPar();
    		X0Y3_母乳3 = partGroup["母乳3"].ToPar();
    		X0Y3_母乳4 = partGroup["母乳4"].ToPar();
    		X0Y3_母乳垂れ1 = partGroup["母乳垂れ1"].ToPar();
    		X0Y3_母乳垂れ2 = partGroup["母乳垂れ2"].ToPar();
    		partGroup = Body[0][4];
    		X0Y4_母乳1 = partGroup["母乳1"].ToPar();
    		X0Y4_母乳2 = partGroup["母乳2"].ToPar();
    		X0Y4_母乳3 = partGroup["母乳3"].ToPar();
    		X0Y4_母乳4 = partGroup["母乳4"].ToPar();
    		X0Y4_母乳垂れ1 = partGroup["母乳垂れ1"].ToPar();
    		X0Y4_母乳垂れ2 = partGroup["母乳垂れ2"].ToPar();
    		partGroup = Body[0][5];
    		X0Y5_母乳1 = partGroup["母乳1"].ToPar();
    		X0Y5_母乳2 = partGroup["母乳2"].ToPar();
    		X0Y5_母乳3 = partGroup["母乳3"].ToPar();
    		X0Y5_母乳4 = partGroup["母乳4"].ToPar();
    		X0Y5_母乳垂れ1 = partGroup["母乳垂れ1"].ToPar();
    		X0Y5_母乳垂れ2 = partGroup["母乳垂れ2"].ToPar();
    		Body.SetJoints();
    		接続根 = new JointD(Body);
    		右 = e.右;
    		反転X = e.反転X;
    		反転Y = e.反転Y;
    		基準C = e.基準C;
    		位置C = e.位置C;
    		角度B = e.角度B;
    		角度C = e.角度C;
    		尺度B = e.尺度B;
    		尺度C = e.尺度C;
    		尺度XB = e.尺度XB;
    		尺度XC = e.尺度XC;
    		尺度YB = e.尺度YB;
    		尺度YC = e.尺度YC;
    		肥大 = e.肥大;
    		身長 = e.身長;
    		Xv = e.Xv;
    		Yv = e.Yv;
    		Xi = e.Xi;
    		Yi = e.Yi;
    		サイズ = e.サイズ;
    		サイズX = e.サイズX;
    		サイズY = e.サイズY;
    		母乳垂れ1_表示 = e.母乳垂れ1_表示;
    		母乳垂れ2_表示 = e.母乳垂れ2_表示;
    		母乳1_表示 = e.母乳1_表示;
    		母乳2_表示 = e.母乳2_表示;
    		母乳3_表示 = e.母乳3_表示;
    		母乳4_表示 = e.母乳4_表示;
    		欠損 = e.欠損;
    		筋肉 = e.筋肉;
    		拘束 = e.拘束;
    		if (!e.表示)
    		{
    			表示 = false;
    		}
    		base.配色指定 = 配色指定;
    		配色(体配色);
    		X0Y0_母乳垂れ1CP = new ColorP(X0Y0_母乳垂れ1, 母乳垂れ1CD, DisUnit, abj: true);
    		X0Y0_母乳垂れ2CP = new ColorP(X0Y0_母乳垂れ2, 母乳垂れ2CD, DisUnit, abj: true);
    		X0Y1_母乳1CP = new ColorP(X0Y1_母乳1, 母乳1CD, DisUnit, abj: true);
    		X0Y1_母乳2CP = new ColorP(X0Y1_母乳2, 母乳2CD, DisUnit, abj: true);
    		X0Y1_母乳3CP = new ColorP(X0Y1_母乳3, 母乳3CD, DisUnit, abj: true);
    		X0Y1_母乳4CP = new ColorP(X0Y1_母乳4, 母乳4CD, DisUnit, abj: true);
    		X0Y1_母乳垂れ1CP = new ColorP(X0Y1_母乳垂れ1, 母乳垂れ1CD, DisUnit, abj: true);
    		X0Y1_母乳垂れ2CP = new ColorP(X0Y1_母乳垂れ2, 母乳垂れ2CD, DisUnit, abj: true);
    		X0Y2_母乳1CP = new ColorP(X0Y2_母乳1, 母乳1CD, DisUnit, abj: true);
    		X0Y2_母乳2CP = new ColorP(X0Y2_母乳2, 母乳2CD, DisUnit, abj: true);
    		X0Y2_母乳3CP = new ColorP(X0Y2_母乳3, 母乳3CD, DisUnit, abj: true);
    		X0Y2_母乳4CP = new ColorP(X0Y2_母乳4, 母乳4CD, DisUnit, abj: true);
    		X0Y2_母乳垂れ1CP = new ColorP(X0Y2_母乳垂れ1, 母乳垂れ1CD, DisUnit, abj: true);
    		X0Y2_母乳垂れ2CP = new ColorP(X0Y2_母乳垂れ2, 母乳垂れ2CD, DisUnit, abj: true);
    		X0Y3_母乳1CP = new ColorP(X0Y3_母乳1, 母乳1CD, DisUnit, abj: true);
    		X0Y3_母乳2CP = new ColorP(X0Y3_母乳2, 母乳2CD, DisUnit, abj: true);
    		X0Y3_母乳3CP = new ColorP(X0Y3_母乳3, 母乳3CD, DisUnit, abj: true);
    		X0Y3_母乳4CP = new ColorP(X0Y3_母乳4, 母乳4CD, DisUnit, abj: true);
    		X0Y3_母乳垂れ1CP = new ColorP(X0Y3_母乳垂れ1, 母乳垂れ1CD, DisUnit, abj: true);
    		X0Y3_母乳垂れ2CP = new ColorP(X0Y3_母乳垂れ2, 母乳垂れ2CD, DisUnit, abj: true);
    		X0Y4_母乳1CP = new ColorP(X0Y4_母乳1, 母乳1CD, DisUnit, abj: true);
    		X0Y4_母乳2CP = new ColorP(X0Y4_母乳2, 母乳2CD, DisUnit, abj: true);
    		X0Y4_母乳3CP = new ColorP(X0Y4_母乳3, 母乳3CD, DisUnit, abj: true);
    		X0Y4_母乳4CP = new ColorP(X0Y4_母乳4, 母乳4CD, DisUnit, abj: true);
    		X0Y4_母乳垂れ1CP = new ColorP(X0Y4_母乳垂れ1, 母乳垂れ1CD, DisUnit, abj: true);
    		X0Y4_母乳垂れ2CP = new ColorP(X0Y4_母乳垂れ2, 母乳垂れ2CD, DisUnit, abj: true);
    		X0Y5_母乳1CP = new ColorP(X0Y5_母乳1, 母乳1CD, DisUnit, abj: true);
    		X0Y5_母乳2CP = new ColorP(X0Y5_母乳2, 母乳2CD, DisUnit, abj: true);
    		X0Y5_母乳3CP = new ColorP(X0Y5_母乳3, 母乳3CD, DisUnit, abj: true);
    		X0Y5_母乳4CP = new ColorP(X0Y5_母乳4, 母乳4CD, DisUnit, abj: true);
    		X0Y5_母乳垂れ1CP = new ColorP(X0Y5_母乳垂れ1, 母乳垂れ1CD, DisUnit, abj: true);
    		X0Y5_母乳垂れ2CP = new ColorP(X0Y5_母乳垂れ2, 母乳垂れ2CD, DisUnit, abj: true);
    		Intensity = e.濃度;
    	}

    	public override void 色更新()
    	{
    		switch (Body.IndexY)
    		{
    		case 0:
    			X0Y0_母乳垂れ1CP.Update();
    			X0Y0_母乳垂れ2CP.Update();
    			break;
    		case 1:
    			X0Y1_母乳1CP.Update();
    			X0Y1_母乳2CP.Update();
    			X0Y1_母乳3CP.Update();
    			X0Y1_母乳4CP.Update();
    			X0Y1_母乳垂れ1CP.Update();
    			X0Y1_母乳垂れ2CP.Update();
    			break;
    		case 2:
    			X0Y2_母乳1CP.Update();
    			X0Y2_母乳2CP.Update();
    			X0Y2_母乳3CP.Update();
    			X0Y2_母乳4CP.Update();
    			X0Y2_母乳垂れ1CP.Update();
    			X0Y2_母乳垂れ2CP.Update();
    			break;
    		case 3:
    			X0Y3_母乳1CP.Update();
    			X0Y3_母乳2CP.Update();
    			X0Y3_母乳3CP.Update();
    			X0Y3_母乳4CP.Update();
    			X0Y3_母乳垂れ1CP.Update();
    			X0Y3_母乳垂れ2CP.Update();
    			break;
    		case 4:
    			X0Y4_母乳1CP.Update();
    			X0Y4_母乳2CP.Update();
    			X0Y4_母乳3CP.Update();
    			X0Y4_母乳4CP.Update();
    			X0Y4_母乳垂れ1CP.Update();
    			X0Y4_母乳垂れ2CP.Update();
    			break;
    		default:
    			X0Y5_母乳1CP.Update();
    			X0Y5_母乳2CP.Update();
    			X0Y5_母乳3CP.Update();
    			X0Y5_母乳4CP.Update();
    			X0Y5_母乳垂れ1CP.Update();
    			X0Y5_母乳垂れ2CP.Update();
    			break;
    		}
    	}

    	private void 配色(BodyColorSet 体配色)
    	{
    		配色N0(体配色);
    	}

    	private void 配色N0(BodyColorSet 体配色)
    	{
    		母乳1CD = new ColorD(ref 体配色.母乳線, ref 体配色.母乳);
    		母乳2CD = new ColorD(ref 体配色.母乳線, ref 体配色.母乳);
    		母乳3CD = new ColorD(ref 体配色.母乳線, ref 体配色.母乳);
    		母乳4CD = new ColorD(ref 体配色.母乳線, ref 体配色.母乳);
    		母乳垂れ1CD = new ColorD(ref 体配色.母乳線, ref 体配色.母乳);
    		母乳垂れ2CD = new ColorD(ref 体配色.母乳線, ref 体配色.母乳);
    	}
    }
}
