wrestle with writing to sim

This commit is contained in:
wonkyhonky2024
2025-05-13 21:22:31 +01:00
parent 1ae087703d
commit 1b44322325
4 changed files with 30 additions and 4 deletions

BIN
Content/LinacLab/MyMyUserWidget.uasset (Stored with Git LFS)

Binary file not shown.

BIN
Content/LinacLab/vt100_Blueprint.uasset (Stored with Git LFS)

Binary file not shown.

View File

@ -23,6 +23,24 @@ UTheracAdapterComponent::UTheracAdapterComponent() {
// ... // ...
} }
void UTheracAdapterComponent::UpdateSimulator(
ExtCallType ect,
HsStablePtr wrapped_comms,
BeamType beam_type,
CollimatorPosition collimator_position,
HsInt beam_energy
) {
if (wrapped_comms == nullptr)
wrapped_comms = wrappedComms;
wrap_external_call(
wrapped_comms,
ect,
beam_type,
collimator_position,
beam_energy
);
}
// Called when the game starts // Called when the game starts
void UTheracAdapterComponent::BeginPlay() { void UTheracAdapterComponent::BeginPlay() {
/* /*

View File

@ -46,6 +46,14 @@ public:
UPROPERTY(BlueprintReadOnly, VisibleAnywhere) UPROPERTY(BlueprintReadOnly, VisibleAnywhere)
FText BeamEnergy; FText BeamEnergy;
void UpdateSimulator(
ExtCallType ect,
HsStablePtr wrapped_comms = nullptr,
BeamType beam_type = BeamTypeUndefined,
CollimatorPosition collimator_position = CollimatorPositionUndefined,
HsInt beam_energy = 25000
);
protected: protected:
// Called when the game starts // Called when the game starts
virtual void BeginPlay() override; virtual void BeginPlay() override;