Esempio n. 1
0
        public override void OnStart()
        {
            AltInteractions.Init();

            Alt.Export("registerInteractionEvent", new Action <string>(RegisterInteractionEvent));
            Alt.Export("unregisterInteractionEvent", new Action <string>(UnregisterInteractionEvent));
            Alt.Export("createInteraction", new Func <long, long, Vector3, int, int, ulong>(CreateInteraction));
            Alt.Export("setInteractionPosition", new Action <long, long, Vector3>(SetInteractionPosition));
            Alt.Export("getInteractionPosition", new Func <long, long, Vector3>(GetInteractionPosition));
            Alt.Export("setInteractionRange", new Action <long, long, int>(SetInteractionRange));
            Alt.Export("getInteractionRange", new Func <long, long, uint>(GetInteractionRange));
            Alt.Export("setInteractionDimension", new Action <long, long, int>(SetInteractionDimension));
            Alt.Export("getInteractionDimension", new Func <long, long, int>(GetInteractionDimension));
            Alt.Export("doesInteractionExist", new Func <long, long, bool>(DoesInteractionExist));
            Alt.Export("removeInteraction", new Action <long, long>(RemoveInteraction));
        }
        public async Task OnStartup()
        {
            AltInteractions.Init();

            await Task.CompletedTask;
        }
 public void Setup()
 {
     AltInteractions.Init();
 }