Add Unity3D projects

This commit is contained in:
2024-03-09 19:25:59 +00:00
parent 1c71f24fab
commit 829289c881
4626 changed files with 441247 additions and 0 deletions

View File

@ -0,0 +1,45 @@
using UnityEngine;
namespace RoadArchitect.Threading
{
public class RoadCalcs2 : ThreadedJob
{
private object handle = new object();
private RoadConstructorBufferMaker RCS;
public void Setup(ref RoadConstructorBufferMaker _RCS)
{
RCS = _RCS;
}
protected override void ThreadFunction()
{
try
{
RoadCreationT.RoadJob2(ref RCS);
}
catch (System.Exception exception)
{
lock (handle)
{
RCS.road.isEditorError = true;
RCS.road.exceptionError = exception;
}
}
}
public RoadConstructorBufferMaker GetRCS()
{
RoadConstructorBufferMaker tRCS;
lock (handle)
{
tRCS = RCS;
}
return tRCS;
}
}
}