Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_positionchaser2d.inc

raw
1 { -*- buffer-read-only: t -*-
2
3 Copyright 2015-2024 Michalis Kamburelis.
4
5 This file is part of "Castle Game Engine".
6
7 "Castle Game Engine" is free software; see the file COPYING.txt,
8 included in this distribution, for details about the copyright.
9
10 "Castle Game Engine" is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 ----------------------------------------------------------------------------
15 }
16
17 { Automatically generated node properties.
18
19 Do not edit this file manually!
20 To add new properties:
21 - add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ ,
22 - and regenerate include files by running x3d-nodes-to-pascal }
23
24 {$ifdef read_interface}
25
26 strict private
27 function GetInitialDestination: TVector2;
28 procedure SetInitialDestination(const Value: TVector2);
29 function GetInitialValue: TVector2;
30 procedure SetInitialValue(const Value: TVector2);
31 public
32 { Create node fields and events. }
33 procedure CreateNode; override;
34 class function ClassX3DType: String; override;
35
36 strict private FEventSet_destination: TSFVec2fEvent;
37 { }
38 public property EventSet_destination: TSFVec2fEvent read FEventSet_destination;
39
40 strict private FEventSet_value: TSFVec2fEvent;
41 { }
42 public property EventSet_value: TSFVec2fEvent read FEventSet_value;
43
44 strict private FEventValue_changed: TSFVec2fEvent;
45 { }
46 public property EventValue_changed: TSFVec2fEvent read FEventValue_changed;
47
48 strict private FFdInitialDestination: TSFVec2f;
49 { Internal wrapper for property @code(InitialDestination). This wrapper API may change, we advise to access simpler @code(InitialDestination) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
50 public property FdInitialDestination: TSFVec2f read FFdInitialDestination;
51 { }
52 property InitialDestination: TVector2 read GetInitialDestination write SetInitialDestination;
53
54 strict private FFdInitialValue: TSFVec2f;
55 { Internal wrapper for property @code(InitialValue). This wrapper API may change, we advise to access simpler @code(InitialValue) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
56 public property FdInitialValue: TSFVec2f read FFdInitialValue;
57 { }
58 property InitialValue: TVector2 read GetInitialValue write SetInitialValue;
59
60 {$endif read_interface}
61
62 {$ifdef read_implementation}
63
64 { TPositionChaser2DNode ----------------------------------------------- }
65
66 function TPositionChaser2DNode.GetInitialDestination: TVector2;
67 begin
68 Result := FdInitialDestination.Value;
69 end;
70
71 procedure TPositionChaser2DNode.SetInitialDestination(const Value: TVector2);
72 begin
73 FdInitialDestination.Send(Value);
74 end;
75
76 function TPositionChaser2DNode.GetInitialValue: TVector2;
77 begin
78 Result := FdInitialValue.Value;
79 end;
80
81 procedure TPositionChaser2DNode.SetInitialValue(const Value: TVector2);
82 begin
83 FdInitialValue.Send(Value);
84 end;
85
86 class function TPositionChaser2DNode.ClassX3DType: String;
87 begin
88 Result := 'PositionChaser2D';
89 end;
90
91 procedure TPositionChaser2DNode.CreateNode;
92 begin
93 inherited;
94
95 FEventSet_destination := TSFVec2fEvent.Create(Self, 'set_destination', true);
96 AddEvent(FEventSet_destination);
97
98 FEventSet_value := TSFVec2fEvent.Create(Self, 'set_value', true);
99 AddEvent(FEventSet_value);
100
101 FEventValue_changed := TSFVec2fEvent.Create(Self, 'value_changed', false);
102 AddEvent(FEventValue_changed);
103
104 FFdInitialDestination := TSFVec2f.Create(Self, False, 'initialDestination', Vector2(0, 0));
105 FdInitialDestination.ChangeAlways := chVisibleNonGeometry;
106 AddField(FFdInitialDestination);
107
108 FFdInitialValue := TSFVec2f.Create(Self, False, 'initialValue', Vector2(0, 0));
109 FdInitialValue.ChangeAlways := chVisibleNonGeometry;
110 AddField(FFdInitialValue);
111 end;
112
113 {$endif read_implementation}