5 #include <CoreMinimal.h>
8 #include <TimerManager.h>
9 #include <UObject/StrongObjectPtr.h>
13 #include "LovenseTypes.generated.h"
33 [[deprecated(
"Use configDeviceIpOverrideKeyName instead.")]]
39 [[deprecated(
"Use configDevicePortOverrideKeyName instead.")]]
119 enum class ELovenseCommand : uint8 {
135 RotateAntiClockwise = 7,
191 USTRUCT(BlueprintType)
193 GENERATED_USTRUCT_BODY()
196 UPROPERTY(BlueprintReadOnly, Category =
"Lovense")
200 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
204 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
212 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
216 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
217 FString firmwareVersion;
220 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
224 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
227 FString ToString()
const {
228 FString output = TEXT(
"");
229 FLovenseToyDescription::StaticStruct()->ExportText(output,
this,
nullptr,
nullptr, 0,
nullptr);
235 this->name = TEXT(
"");
238 this->firmwareVersion = TEXT(
"");
239 this->nickname = TEXT(
"");
240 this->version = TEXT(
"");
248 USTRUCT(BlueprintType)
256 UPROPERTY(BlueprintReadOnly, Category =
"Lovense")
265 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
273 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
282 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
292 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
296 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
300 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
304 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
312 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
315 FString ToString()
const {
316 FString output = TEXT(
"");
317 FLovenseAdapterDescription::StaticStruct()->ExportText(output,
this,
nullptr,
nullptr, 0,
nullptr);
322 this->deviceCode = TEXT(
"");
324 this->domain = TEXT(
"");
327 this->platform = TEXT(
"");
328 this->appVersion = TEXT(
"");
329 this->appType = TEXT(
"");
330 this->toys = TArray<FLovenseToyDescription>();
338 USTRUCT(BlueprintType)
343 UPROPERTY(BlueprintReadOnly, Category =
"Lovense")
347 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
351 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
355 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
360 this->message = TEXT(
"");
361 this->adapters = TArray<FLovenseAdapterDescription>();
362 this->jsonString = TEXT(
"");
370 USTRUCT(BlueprintType)
375 UPROPERTY(BlueprintReadOnly, Category =
"Lovense")
379 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
383 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
387 UPROPERTY(BlueprintReadOnly, Category = "Lovense")
391 this->type = TEXT(
"");
393 this->toys = TArray<FLovenseToyDescription>();
394 this->jsonString = TEXT(
"");
402 USTRUCT(BlueprintType)
407 UPROPERTY(BlueprintReadWrite, Category =
"Lovense")
411 UPROPERTY(BlueprintReadWrite, Category = "Lovense")
415 UPROPERTY(BlueprintReadWrite, Category = "Lovense")
419 UPROPERTY(BlueprintReadWrite, Category = "Lovense")
423 UPROPERTY(BlueprintReadWrite, Category = "Lovense")
427 UPROPERTY(BlueprintReadWrite, Category = "Lovense")
431 UPROPERTY(BlueprintReadWrite, Category = "Lovense")
435 UPROPERTY(BlueprintReadWrite, Category = "Lovense")
436 TArray<int32> pattern;
439 UPROPERTY(BlueprintReadWrite, Category = "Lovense")
443 FString ParsePattern();
446 this->bVibrate =
true;
447 this->bRotate =
true;
449 this->bThrust =
true;
451 this->bFinger =
true;
452 this->interval = 100;
453 this->pattern = TArray<int32>();
466 FTimerHandle commandDelayTimerHandle_Vibrate = FTimerHandle();
467 FTimerHandle commandDelayTimerHandle_Vibrate1 = FTimerHandle();
468 FTimerHandle commandDelayTimerHandle_Vibrate2 = FTimerHandle();
469 FTimerHandle commandDelayTimerHandle_VibRotateAir = FTimerHandle();
470 FTimerHandle commandDelayTimerHandle_Rotate = FTimerHandle();
471 FTimerHandle commandDelayTimerHandle_Air = FTimerHandle();
472 FTimerHandle commandDelayTimerHandle_Thrust = FTimerHandle();
473 FTimerHandle commandDelayTimerHandle_Suck = FTimerHandle();
474 FTimerHandle commandDelayTimerHandle_Finger = FTimerHandle();
475 FTimerHandle commandDelayTimerHandle_Preset = FTimerHandle();
476 FTimerHandle commandDelayTimerHandle_All = FTimerHandle();
477 FTimerHandle commandDelayTimerHandle_Pattern = FTimerHandle();
478 float commandDelay_Vibrate = 0.2f;
479 float commandDelay_Vibrate1 = 0.2f;
480 float commandDelay_Vibrate2 = 0.2f;
481 float commandDelay_VibRotateAir = 0.2f;
482 float commandDelay_Rotate = 1.0f;
483 float commandDelay_Air = 1.0f;
484 float commandDelay_Thrust = 0.2f;
485 float commandDelay_Suck = 0.2f;
486 float commandDelay_Finger = 0.2f;
487 float commandDelay_Preset = 1.0f;
488 float commandDelay_All = 0.2f;
489 float commandDelay_Pattern = 0.1f;
505 DECLARE_DELEGATE_TwoParams(FOnLovenseGetToysResponse,
FLovenseGetToysResponseData,
const TArray<TStrongObjectPtr<class ULovenseToy>>&);
512 DECLARE_DYNAMIC_DELEGATE_TwoParams(FOnLovenseResponseDynamic,
class ULovenseToy*, toy, int32, responseValue);
519 DECLARE_DELEGATE_OneParam(FOnLovenseResponse, int32);