示例#1
0
 public async void MyServerEventHandlerAsync(IMyVehicle vehicle)
 {
     AltAsync.Log("data-custom-parser: " + vehicle.MyData);
 }
示例#2
0
 public void MyServerEventHandler2(IMyVehicle vehicle)
 {
     Alt.Log("data-custom-parser: " + vehicle.MyData);
 }
示例#3
0
 public void VehicleRemove2(IMyVehicle vehicle)
 {
     Console.WriteLine("vehicle removed2: " + vehicle?.MyData);
 }
示例#4
0
        public async void MyServerEventHandlerAsync(IMyVehicle vehicle)
        {
            await Task.Delay(100);

            AltAsync.Log("data-custom-parser: " + vehicle.MyData);
        }
示例#5
0
 public Task VehicleRemove2Async(IMyVehicle vehicle)
 {
     Console.WriteLine("vehicle removed2 async: " + vehicle?.MyData);
     return(Task.CompletedTask);
 }