mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +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.Modules.Games.EurotruckSimulator2.Data;
|
||||
using MoonSharp.Interpreter;
|
||||
using MoonSharp.Interpreter.Interop;
|
||||
|
||||
namespace Artemis.Modules.Games.EurotruckSimulator2
|
||||
{
|
||||
[MoonSharpUserData]
|
||||
public class EurotruckSimulator2DataModel : IDataModel
|
||||
{
|
||||
// TODO: Test LUA functionality
|
||||
[MoonSharpVisible(true)]
|
||||
public EurotruckSimulator2DataModel()
|
||||
{
|
||||
// Register types for LUA
|
||||
UserData.RegisterType<IEts2Game>();
|
||||
UserData.RegisterType<IEts2Job>();
|
||||
UserData.RegisterType<IEts2Navigation>();
|
||||
UserData.RegisterType<IEts2Trailer>();
|
||||
UserData.RegisterType<IEts2Truck>();
|
||||
}
|
||||
|
||||
public IEts2Game Game { get; set; }
|
||||
[MoonSharpVisible(true)]
|
||||
public IEts2Job Job { get; set; }
|
||||
[MoonSharpVisible(true)]
|
||||
public IEts2Navigation Navigation { get; set; }
|
||||
[MoonSharpVisible(true)]
|
||||
public IEts2Trailer Trailer { get; set; }
|
||||
[MoonSharpVisible(true)]
|
||||
public IEts2Truck Truck { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user