Coherent UI for Unreal Engine 4  2.5.5.0
A modern user interface library for games
 All Classes Functions Variables Pages
CoherentUIJSPayload.h
1 /*
2 This file is part of Coherent UI, modern user interface library for
3 games.
4 
5 Copyright (c) 2012-2014 Coherent Labs AD and/or its licensors. All
6 rights reserved in all media.
7 
8 The coded instructions, statements, computer programs, and/or related
9 material (collectively the "Data") in these files contain confidential
10 and unpublished information proprietary Coherent Labs and/or its
11 licensors, which is protected by United States of America federal
12 copyright law and by international treaties.
13 
14 This software or source code is supplied under the terms of a license
15 agreement and nondisclosure agreement with Coherent Labs Limited and may
16 not be copied, disclosed, or exploited except in accordance with the
17 terms of that agreement. The Data may not be disclosed or distributed to
18 third parties, in whole or in part, without the prior written consent of
19 Coherent Labs Limited.
20 
21 COHERENT LABS MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS
22 SOURCE CODE FOR ANY PURPOSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
23 HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
24 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25 MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE
26 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER, ITS AFFILIATES,
27 PARENT COMPANIES, LICENSORS, SUPPLIERS, OR CONTRIBUTORS BE LIABLE FOR
28 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
33 ANY WAY OUT OF THE USE OR PERFORMANCE OF THIS SOFTWARE OR SOURCE CODE,
34 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 */
36 #pragma once
37 
38 #include <Coherent/UI/EventArguments.h>
39 
40 #include "CoherentUIJSPayload.generated.h"
46 UCLASS(MinimalAPI, BlueprintType, Blueprintable, notplaceable)
47 class UCoherentUIJSPayload : public UObject
48 {
49  GENERATED_UCLASS_BODY()
50 
51 public:
52 
54  UPROPERTY(BlueprintReadOnly, Category="ViewScripting")
55  FString EventName;
56 
60  UFUNCTION(BlueprintCallable, Category = "ViewScripting")
61  FString GetString(int32 index);
62 
66  UFUNCTION(BlueprintCallable, Category = "ViewScripting")
67  int32 GetInt32(int32 index);
68 
72  UFUNCTION(BlueprintCallable, Category = "ViewScripting")
73  uint32 GetUInt32(int32 index);
74 
78  UFUNCTION(BlueprintCallable, Category = "ViewScripting")
79  bool GetBool(int32 index);
80 
84  UFUNCTION(BlueprintCallable, Category = "ViewScripting")
85  float GetNumber(int32 index);
86 
93  UFUNCTION(BlueprintCallable, Category = "ViewScripting")
94  void ReadObject(int32 index, UObject* object);
95 
96  void SetArguments(const Coherent::UI::EventArguments* args);
97 
98 private:
99  const Coherent::UI::EventArguments* Arguments;
100 };
Definition: CoherentUIJSPayload.h:47