Exemplo n.º 1
0
        internal static void SendLightEvent(ELSVehicle vehicle, string key, object value)
        {
            Debug.WriteLine($"sendding LightSync data for netID {vehicle.NetworkId}; {key} : {value}");
            var data = new Dictionary <string, object>
            {
                { key, value }
            };

            SendLightEvent(vehicle, data);
        }
Exemplo n.º 2
0
 internal static void SendLightEvent(ELSVehicle vehicle, Dictionary <string, object> data)
 {
     Debug.WriteLine($"sendding LightSync data for netID {vehicle.NetworkId}");
     vehicle.ControlTimer.Reset();
     FullSync.FullSyncManager.SendLightBroadcast(data, vehicle.NetworkId);
 }
Exemplo n.º 3
0
 internal static void SendEvent(Commands type, ELSVehicle vehicle, bool state)
 {
     vehicle.ControlTimer.Reset();
     Debug.WriteLine($"sendding data for netID {vehicle.NetworkId} of type {type} : {state}");
     Manager.VehicleManager.SyncRequestReply(type, vehicle.NetworkId);
 }