Skip to content

Commit

Permalink
fix decoupler
Browse files Browse the repository at this point in the history
  • Loading branch information
raidernick committed Sep 23, 2016
1 parent 3e2b475 commit 3e0a312
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BDAnimationModules/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.6.4.1")]
[assembly: AssemblyFileVersion("0.6.4.1")]
[assembly: AssemblyVersion("0.6.4.2")]
[assembly: AssemblyFileVersion("0.6.4.2")]
14 changes: 13 additions & 1 deletion BDAnimationModules/BDAnimDec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
namespace BDAnimationModules
{
public class BDAnimatedDec : ModuleDecouple
public class BDAnimatedDec : ModuleDecouple, IScalarModule
{
[KSPField]
public string animationName = "";
Expand All @@ -24,6 +24,9 @@ public class BDAnimatedDec : ModuleDecouple
[KSPField]
public int layer = 0;

[KSPField]
public string moduleID = "bdanimatedDecoupler";

protected Animation anim;

protected bool isDecoupling;
Expand Down Expand Up @@ -185,6 +188,15 @@ public float GetScalar
}
}

public string ScalarModuleID
{
get
{
return this.moduleID;
}
}


public EventData<float, float> OnMoving
{
get
Expand Down
13 changes: 12 additions & 1 deletion BDAnimationModules/BDAnimDecAnchor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace BDAnimationModules
{
public class BDAnimDecAnchor : ModuleAnchoredDecoupler
public class BDAnimDecAnchor : ModuleAnchoredDecoupler, IScalarModule
{
[KSPField]
public string animationName = "";
Expand All @@ -33,6 +33,9 @@ public class BDAnimDecAnchor : ModuleAnchoredDecoupler
[KSPField]
public int layer = 0;

[KSPField]
public string moduleID = "bdanimatedAnchoredDecoupler";

public BDAnimDecAnchor() :
base()
{
Expand Down Expand Up @@ -196,6 +199,14 @@ public float GetScalar
}
}

public string ScalarModuleID
{
get
{
return this.moduleID;
}
}

public EventData<float, float> OnMoving
{
get
Expand Down
2 changes: 1 addition & 1 deletion BahaSP/BDAnimationModules.version
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"MAJOR": 0,
"MINOR": 6,
"PATCH": 4,
"BUILD": 1
"BUILD": 2
},
"KSP_VERSION":
{
Expand Down
Binary file modified BahaSP/Plugins/BDAnimationModules.dll
Binary file not shown.

0 comments on commit 3e0a312

Please sign in to comment.