Skip to content

Commit

Permalink
Add boulder generator template #62
Browse files Browse the repository at this point in the history
Fixes #62
  • Loading branch information
ItsPepperpot committed Sep 7, 2024
1 parent da6affc commit ec5bb8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ public static List<ToolStripMenuItem> PopulateTemplateMenusAt(ToolStripMenuItem
others.DropDownItems.AddRange(new ToolStripItem[]
{
GetTemplateMenuItem(AssetTemplate.Animation_List, eventHandler),
GetTemplateMenuItem(AssetTemplate.Boulder_Generator, eventHandler),
GetTemplateMenuItem(AssetTemplate.Collision_Table, eventHandler),
GetTemplateMenuItem(AssetTemplate.Credits, eventHandler),
GetTemplateMenuItem(AssetTemplate.DefaultGlowSceneProp, eventHandler),
Expand Down Expand Up @@ -890,6 +891,8 @@ private Asset CreateFromTemplate(AssetTemplate template, string assetName, Vecto
{
switch (template)
{
case AssetTemplate.Boulder_Generator:
return new DynaGObjectBoulderGen(assetName);
case AssetTemplate.Counter:
return new AssetCNTR(assetName);
case AssetTemplate.Conditional:
Expand Down
1 change: 1 addition & 0 deletions IndustrialPark/ArchiveEditor/Other/AssetTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public enum AssetTemplate

// Other
Animation_List,
Boulder_Generator,
Camera_Curve,
Credits,
DefaultGlowSceneProp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public class DynaGObjectBoulderGen : AssetDYNA
[Category(dynaCategoryName)]
public AssetSingle AngVel { get; set; }

public DynaGObjectBoulderGen(string assetName) : base(assetName, DynaType.game_object__BoulderGenerator)
{
}

public DynaGObjectBoulderGen(Section_AHDR AHDR, Game game, Endianness endianness) : base(AHDR, DynaType.game_object__BoulderGenerator, game, endianness)
{
using (var reader = new EndianBinaryReader(AHDR.data, endianness))
Expand Down

0 comments on commit ec5bb8b

Please sign in to comment.