Skip to content

Commit

Permalink
- Added wall support
Browse files Browse the repository at this point in the history
  • Loading branch information
H-POPS authored Jul 5, 2016
1 parent 97c22c2 commit d47a25d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Depender/Objects/CoasterCarMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public override void Decorate()
{
List<CoasterCarInstantiator> TypeList = attraction.carTypes.ToList();
CoasterCarInstantiator CarType = ScriptableObject.CreateInstance<CoasterCarInstantiator>();
CarType.defaultTrainLength = 5;
CarType.minTrainLength = 1;
CarType.maxTrainLength = 10;
AssetManager.Instance.registerObject(Object.AddComponent<Car>());
CarType.carGO = Object;
if (FrontCarGO != null)
Expand Down
17 changes: 17 additions & 0 deletions Depender/Objects/CustomScenery/WallMod.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
namespace Depender.Types
{
public class WallMod : ModdedObject
{
public string category;

public override void Decorate()
{
Wall deco = Object.AddComponent<Wall>();
deco.blockedSides = Wall.BlockedSide.Back;
deco.buildOnGrid = true;
deco.defaultSnapToGridCenter = true;
deco.categoryTag = category;
base.Decorate();
}
}
}

0 comments on commit d47a25d

Please sign in to comment.