1
2
3
4
5
6 package cz.cuni.amis.pogamut.udk.t3dgenerator.elements.kismet;
7
8 import cz.cuni.amis.pogamut.unreal.t3dgenerator.annotations.FieldName;
9 import cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes.StaticReference;
10 import cz.cuni.amis.pogamut.unreal.t3dgenerator.datatypes.UnrealReference;
11
12
13
14
15
16 public class ExternalVariable extends KismetVariable{
17 public static final String CLASSNAME = "SeqVar_External";
18
19 private UnrealReference expectedType;
20 @FieldName("VariableLabel")
21 private String label;
22
23 public ExternalVariable(String archetypeName, String label, String expectedType){
24 super(CLASSNAME, archetypeName);
25 this.expectedType = new StaticReference("Class", expectedType);
26 this.label = label;
27 }
28
29 public ExternalVariable(String label){
30 this(getDefaultArchetype(CLASSNAME), label, "Engine.SeqVar_Object");
31 }
32
33 public UnrealReference getExpectedType() {
34 return expectedType;
35 }
36
37
38
39
40
41 public void setExpectedType(String expectedType) {
42 this.expectedType = new StaticReference("Class", expectedType);
43 }
44
45 public void setExpectedType(UnrealReference expectedType) {
46 this.expectedType = expectedType;
47 }
48
49 public String getLabel() {
50 return label;
51 }
52
53 public void setLabel(String label) {
54 this.label = label;
55 }
56
57
58 }