32 lines
453 B
C#
32 lines
453 B
C#
using System;
|
|
|
|
namespace _2DGAMELIB
|
|
{
|
|
[Serializable]
|
|
public class Joint
|
|
{
|
|
public Par Par0;
|
|
|
|
public int Index;
|
|
|
|
public Par Par1;
|
|
|
|
public Joint(Par Par0, int Index, Par Par1)
|
|
{
|
|
this.Par0 = Par0;
|
|
this.Index = Index;
|
|
this.Par1 = Par1;
|
|
}
|
|
|
|
public void JoinP()
|
|
{
|
|
Par0.SetJointP(Index, Par1);
|
|
}
|
|
|
|
public void JoinPA()
|
|
{
|
|
Par0.SetJointPA(Index, Par1);
|
|
}
|
|
}
|
|
}
|