Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_loadsensor.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 GetTimeOut: TFloatTime;
28 procedure SetTimeOut(const Value: TFloatTime);
29 public
30 { Create node fields and events. }
31 procedure CreateNode; override;
32 class function ClassX3DType: String; override;
33
34 strict private FFdTimeOut: TSFTime;
35 { Internal wrapper for property @code(TimeOut). This wrapper API may change, we advise to access simpler @code(TimeOut) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
36 public property FdTimeOut: TSFTime read FFdTimeOut;
37 { }
38 property TimeOut: TFloatTime read GetTimeOut write SetTimeOut;
39
40 strict private FFdWatchList: TMFNode;
41 { Internal wrapper for property @code(WatchList). This wrapper API may change, we advise to access simpler @code(WatchList) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
42 public property FdWatchList: TMFNode read FFdWatchList;
43
44 strict private FEventIsLoaded: TSFBoolEvent;
45 { }
46 public property EventIsLoaded: TSFBoolEvent read FEventIsLoaded;
47
48 strict private FEventLoadTime: TSFTimeEvent;
49 { }
50 public property EventLoadTime: TSFTimeEvent read FEventLoadTime;
51
52 strict private FEventProgress: TSFFloatEvent;
53 { }
54 public property EventProgress: TSFFloatEvent read FEventProgress;
55
56 {$endif read_interface}
57
58 {$ifdef read_implementation}
59
60 { TLoadSensorNode ----------------------------------------------- }
61
62 function TLoadSensorNode.GetTimeOut: TFloatTime;
63 begin
64 Result := FdTimeOut.Value;
65 end;
66
67 procedure TLoadSensorNode.SetTimeOut(const Value: TFloatTime);
68 begin
69 FdTimeOut.Send(Value);
70 end;
71
72 class function TLoadSensorNode.ClassX3DType: String;
73 begin
74 Result := 'LoadSensor';
75 end;
76
77 procedure TLoadSensorNode.CreateNode;
78 begin
79 inherited;
80
81 FFdTimeOut := TSFTime.Create(Self, True, 'timeOut', 0);
82 FdTimeOut.ChangeAlways := chVisibleNonGeometry;
83 AddField(FFdTimeOut);
84
85 FFdWatchList := TMFNode.Create(Self, True, 'watchList', TUrlFunctionality);
86 FdWatchList.ChangeAlways := chVisibleNonGeometry;
87 AddField(FFdWatchList);
88
89 FEventIsLoaded := TSFBoolEvent.Create(Self, 'isLoaded', false);
90 AddEvent(FEventIsLoaded);
91
92 FEventLoadTime := TSFTimeEvent.Create(Self, 'loadTime', false);
93 AddEvent(FEventLoadTime);
94
95 FEventProgress := TSFFloatEvent.Create(Self, 'progress', false);
96 AddEvent(FEventProgress);
97 end;
98
99 {$endif read_implementation}