Skip to content

Commit

Permalink
📝 adding the codes from version v0.6.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
niziul committed Mar 29, 2023
1 parent b558d19 commit 45d31db
Show file tree
Hide file tree
Showing 12 changed files with 1,199 additions and 1,090 deletions.
2 changes: 0 additions & 2 deletions Helideck Signaling/Helideck Signaling.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
<ItemGroup>
<Compile Include="blip-creator\BlipCreator.cs" />
<Compile Include="blip-creator\HelipadBlip.cs" />
<Compile Include="Class1.cs" />
<Compile Include="Class2.cs" />
<Compile Include="Main.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="setup-manager\Settings.cs" />
Expand Down
29 changes: 13 additions & 16 deletions Helideck Signaling/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ internal sealed class Main : Script

public Main()
{
_areThereBlipsOnTheMap =
false;
_blipCreator
= new BlipCreator();

_player =
Game
_areThereBlipsOnTheMap
= false;

_player
= Game
.Player
.Character;

_blipCreator =
new BlipCreator();

Tick += (o, e) =>
{ Start(); };

Expand All @@ -44,7 +44,7 @@ private void Start()
{
case true:
{
BlipBehaviors();
BlipBehaviors();
}
return;
case false:
Expand Down Expand Up @@ -92,13 +92,12 @@ private void FlightOperation()
_blipCreator
.ClearsMapLeavingOnlyTheSelectedBlips();

//var isTheWaypointInUse =
// World
// .WaypointBlip != null;

var isTheWaypointInUse =
World
.WaypointBlip != null;

if (isTheWaypointInUse)
LandingZoneControl();
//if (isTheWaypointInUse)
// LandingZoneControl();
}

_areThereBlipsOnTheMap =
Expand Down Expand Up @@ -140,7 +139,6 @@ private void LandingZoneControl()
}
else
{

if (vehicleOnTheLandingArea
.IsHelicopter &&
vehicleOnTheLandingArea
Expand All @@ -154,7 +152,6 @@ private void LandingZoneControl()

vehicleOnTheLandingArea
.Delete();

}
}
}
Expand Down
38 changes: 38 additions & 0 deletions Helideck Signaling/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Helideck-Signaling")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Helideck-Signaling")]
[assembly: AssemblyCopyright("Copyright © 2022 niziulluizin")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("EB6E70BB-473C-40AC-984B-0B1F762593B7")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.6.0.0")]
[assembly: AssemblyFileVersion("0.6.0.0")]
[assembly: NeutralResourcesLanguage("en")]
18 changes: 12 additions & 6 deletions Helideck Signaling/blip-creator/BlipCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,12 @@ internal void CreateAllAvailableBlips()

foreach (var locationOfTheNativeHelipad in locationOfTheNativeHelipads)
{
if (building.Position.ToString() == locationOfTheNativeHelipad.ToString())
hasThisHelipadBeenIdentifiedYet =
true;
var buildingPositionn
= building
.Position;

if (buildingPositionn.ToString() == locationOfTheNativeHelipad.ToString())
hasThisHelipadBeenIdentifiedYet = true;
}

if (!hasThisHelipadBeenIdentifiedYet)
Expand All @@ -76,9 +79,12 @@ internal void CreateAllAvailableBlips()

foreach (var locationOfTheNativeHelipad in locationOfTheNativeHelipads)
{
if (prop.Position.ToString() == locationOfTheNativeHelipad.ToString())
hasThisHelipadBeenIdentifiedYet =
true;
var propPosition
= prop
.Position;

if (propPosition.ToString() == locationOfTheNativeHelipad.ToString())
hasThisHelipadBeenIdentifiedYet = true;
}

if (!hasThisHelipadBeenIdentifiedYet)
Expand Down
Loading

0 comments on commit 45d31db

Please sign in to comment.