Skip to content

Commit

Permalink
-Added some more base types to the block registry
Browse files Browse the repository at this point in the history
-Added the new light properties in game patch 1.046 (read-only for now)
  • Loading branch information
chessmaster42 committed Sep 4, 2014
1 parent 8037454 commit c17d650
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
3 changes: 3 additions & 0 deletions SEModAPIInternal/API/Common/BlockRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ protected BlockRegistry()
Register(typeof(MyObjectBuilder_FunctionalBlock), typeof(FunctionalBlockEntity), misc);
Register(typeof(MyObjectBuilder_ProductionBlock), typeof(ProductionBlockEntity), production);
Register(typeof(MyObjectBuilder_ShipController), typeof(ShipControllerEntity), utility);
Register(typeof(MyObjectBuilder_TurretBase), typeof(TurretBaseEntity), weapons);
Register(typeof(MyObjectBuilder_ShipToolBase), typeof(ShipToolBaseEntity), tools);
Register(typeof(MyObjectBuilder_LightingBlock), typeof(LightEntity), lights);
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,49 @@ public float Radius
}
}

[DataMember]
[Category("Light")]
[ReadOnly(true)]
public float BlinkIntervalSeconds
{
get
{
return ObjectBuilder.BlinkIntervalSeconds;
}
private set
{
}
}

[DataMember]
[Category("Light")]
[ReadOnly(true)]
public float BlinkLength
{
get
{
//Note: Keen's code has this misspelled. It is not a typo
return ObjectBuilder.BlinkLenght;
}
private set
{
}
}

[DataMember]
[Category("Light")]
[ReadOnly(true)]
public float BlinkOffset
{
get
{
return ObjectBuilder.BlinkOffset;
}
private set
{
}
}

#endregion

#region "Methods"
Expand Down
4 changes: 2 additions & 2 deletions SEModAPIInternal/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("0.2.3.7")]
[assembly: AssemblyFileVersion("0.2.3.7")]
[assembly: AssemblyVersion("0.2.3.8")]
[assembly: AssemblyFileVersion("0.2.3.8")]

0 comments on commit c17d650

Please sign in to comment.