コード例 #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));
        }
コード例 #2
0
        public async Task OnStartup()
        {
            AltInteractions.Init();

            await Task.CompletedTask;
        }
コード例 #3
0
 public void Setup()
 {
     AltInteractions.Init();
 }