mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-31 17:53:32 +00:00
Fixed Eurotruck Simulator LUA
This commit is contained in:
parent
a9dcc70897
commit
065940c1f9
@ -1,23 +1,26 @@
|
|||||||
using Artemis.Models.Interfaces;
|
using Artemis.Models.Interfaces;
|
||||||
using Artemis.Modules.Games.EurotruckSimulator2.Data;
|
using Artemis.Modules.Games.EurotruckSimulator2.Data;
|
||||||
using MoonSharp.Interpreter;
|
using MoonSharp.Interpreter;
|
||||||
using MoonSharp.Interpreter.Interop;
|
|
||||||
|
|
||||||
namespace Artemis.Modules.Games.EurotruckSimulator2
|
namespace Artemis.Modules.Games.EurotruckSimulator2
|
||||||
{
|
{
|
||||||
[MoonSharpUserData]
|
[MoonSharpUserData]
|
||||||
public class EurotruckSimulator2DataModel : IDataModel
|
public class EurotruckSimulator2DataModel : IDataModel
|
||||||
{
|
{
|
||||||
// TODO: Test LUA functionality
|
public EurotruckSimulator2DataModel()
|
||||||
[MoonSharpVisible(true)]
|
{
|
||||||
|
// Register types for LUA
|
||||||
|
UserData.RegisterType<IEts2Game>();
|
||||||
|
UserData.RegisterType<IEts2Job>();
|
||||||
|
UserData.RegisterType<IEts2Navigation>();
|
||||||
|
UserData.RegisterType<IEts2Trailer>();
|
||||||
|
UserData.RegisterType<IEts2Truck>();
|
||||||
|
}
|
||||||
|
|
||||||
public IEts2Game Game { get; set; }
|
public IEts2Game Game { get; set; }
|
||||||
[MoonSharpVisible(true)]
|
|
||||||
public IEts2Job Job { get; set; }
|
public IEts2Job Job { get; set; }
|
||||||
[MoonSharpVisible(true)]
|
|
||||||
public IEts2Navigation Navigation { get; set; }
|
public IEts2Navigation Navigation { get; set; }
|
||||||
[MoonSharpVisible(true)]
|
|
||||||
public IEts2Trailer Trailer { get; set; }
|
public IEts2Trailer Trailer { get; set; }
|
||||||
[MoonSharpVisible(true)]
|
|
||||||
public IEts2Truck Truck { get; set; }
|
public IEts2Truck Truck { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user