Skip to content

Commit

Permalink
support for airport DLC
Browse files Browse the repository at this point in the history
  • Loading branch information
kianzarrin committed Jan 25, 2022
1 parent fd00102 commit cc008c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NodeController/NodeController.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Product>NodeController</Product>
<Copyright>Copyright © 2020</Copyright>
<Deterministic>false</Deterministic>
<AssemblyVersion>2.4.2.*</AssemblyVersion>
<AssemblyVersion>2.5.*</AssemblyVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
<DebugType>full</DebugType>
Expand Down
9 changes: 6 additions & 3 deletions NodeController/Patches/NetManager/CreateSegmentPatch.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
namespace NodeController.Patches._NetManager
{
using HarmonyLib;
using NodeController;
using NodeController.LifeCycle;
using KianCommons;
using static KianCommons.HelpersExtensions;
using NodeController.Patches._NetTool;
using System;
using ColossalFramework.Math;
using UnityEngine;
using KianCommons.Patches;

// TODO check compat with ParallelRoadTool
[HarmonyPatch(typeof(global::NetManager), nameof(NetManager.CreateSegment))]
[HarmonyPatch2(typeof(NetManager), typeof(CreateSegment))]
public static class CreateSegmentPatch
{
delegate bool CreateSegment(out ushort segment, ref Randomizer randomizer, NetInfo info, TreeInfo treeInfo, ushort startNode, ushort endNode, Vector3 startDirection, Vector3 endDirection, uint buildIndex, uint modifiedIndex, bool invert);

// pastes segment ends that:
// 1- not nullnot null and
// 2- its nodeID matches input start/end nodeID.
Expand Down

0 comments on commit cc008c5

Please sign in to comment.