| 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 GetLoop: Boolean; |
| 28 |
procedure SetLoop(const Value: Boolean); |
| 29 |
function GetPauseTime: TFloatTime; |
| 30 |
procedure SetPauseTime(const Value: TFloatTime); |
| 31 |
function GetResumeTime: TFloatTime; |
| 32 |
procedure SetResumeTime(const Value: TFloatTime); |
| 33 |
function GetStartTime: TFloatTime; |
| 34 |
procedure SetStartTime(const Value: TFloatTime); |
| 35 |
function GetStopTime: TFloatTime; |
| 36 |
procedure SetStopTime(const Value: TFloatTime); |
| 37 |
public |
| 38 |
{ Create node fields and events. } |
| 39 |
procedure CreateNode; override; |
| 40 |
class function ClassX3DType: String; override; |
| 41 |
|
| 42 |
strict private FFdLoop: TSFBool; |
| 43 |
{ Internal wrapper for property @code(Loop). This wrapper API may change, we advise to access simpler @code(Loop) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 44 |
public property FdLoop: TSFBool read FFdLoop; |
| 45 |
{ } |
| 46 |
property Loop: Boolean read GetLoop write SetLoop; |
| 47 |
|
| 48 |
strict private FFdPauseTime: TSFTime; |
| 49 |
{ Internal wrapper for property @code(PauseTime). This wrapper API may change, we advise to access simpler @code(PauseTime) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 50 |
public property FdPauseTime: TSFTime read FFdPauseTime; |
| 51 |
{ } |
| 52 |
property PauseTime: TFloatTime read GetPauseTime write SetPauseTime; |
| 53 |
|
| 54 |
strict private FFdResumeTime: TSFTime; |
| 55 |
{ Internal wrapper for property @code(ResumeTime). This wrapper API may change, we advise to access simpler @code(ResumeTime) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 56 |
public property FdResumeTime: TSFTime read FFdResumeTime; |
| 57 |
{ } |
| 58 |
property ResumeTime: TFloatTime read GetResumeTime write SetResumeTime; |
| 59 |
|
| 60 |
strict private FFdStartTime: TSFTime; |
| 61 |
{ Internal wrapper for property @code(StartTime). This wrapper API may change, we advise to access simpler @code(StartTime) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 62 |
public property FdStartTime: TSFTime read FFdStartTime; |
| 63 |
{ } |
| 64 |
property StartTime: TFloatTime read GetStartTime write SetStartTime; |
| 65 |
|
| 66 |
strict private FFdStopTime: TSFTime; |
| 67 |
{ Internal wrapper for property @code(StopTime). This wrapper API may change, we advise to access simpler @code(StopTime) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 68 |
public property FdStopTime: TSFTime read FFdStopTime; |
| 69 |
{ } |
| 70 |
property StopTime: TFloatTime read GetStopTime write SetStopTime; |
| 71 |
|
| 72 |
strict private FEventElapsedTime: TSFTimeEvent; |
| 73 |
{ } |
| 74 |
public property EventElapsedTime: TSFTimeEvent read FEventElapsedTime; |
| 75 |
|
| 76 |
strict private FEventIsActive: TSFBoolEvent; |
| 77 |
{ } |
| 78 |
public property EventIsActive: TSFBoolEvent read FEventIsActive; |
| 79 |
|
| 80 |
strict private FEventIsPaused: TSFBoolEvent; |
| 81 |
{ } |
| 82 |
public property EventIsPaused: TSFBoolEvent read FEventIsPaused; |
| 83 |
|
| 84 |
{$endif read_interface} |
| 85 |
|
| 86 |
{$ifdef read_implementation} |
| 87 |
|
| 88 |
{ TAbstractTimeDependentNode ----------------------------------------------- } |
| 89 |
|
| 90 |
function TAbstractTimeDependentNode.GetLoop: Boolean; |
| 91 |
begin |
| 92 |
Result := FdLoop.Value; |
| 93 |
end; |
| 94 |
|
| 95 |
procedure TAbstractTimeDependentNode.SetLoop(const Value: Boolean); |
| 96 |
begin |
| 97 |
FdLoop.Send(Value); |
| 98 |
end; |
| 99 |
|
| 100 |
function TAbstractTimeDependentNode.GetPauseTime: TFloatTime; |
| 101 |
begin |
| 102 |
Result := FdPauseTime.Value; |
| 103 |
end; |
| 104 |
|
| 105 |
procedure TAbstractTimeDependentNode.SetPauseTime(const Value: TFloatTime); |
| 106 |
begin |
| 107 |
FdPauseTime.Send(Value); |
| 108 |
end; |
| 109 |
|
| 110 |
function TAbstractTimeDependentNode.GetResumeTime: TFloatTime; |
| 111 |
begin |
| 112 |
Result := FdResumeTime.Value; |
| 113 |
end; |
| 114 |
|
| 115 |
procedure TAbstractTimeDependentNode.SetResumeTime(const Value: TFloatTime); |
| 116 |
begin |
| 117 |
FdResumeTime.Send(Value); |
| 118 |
end; |
| 119 |
|
| 120 |
function TAbstractTimeDependentNode.GetStartTime: TFloatTime; |
| 121 |
begin |
| 122 |
Result := FdStartTime.Value; |
| 123 |
end; |
| 124 |
|
| 125 |
procedure TAbstractTimeDependentNode.SetStartTime(const Value: TFloatTime); |
| 126 |
begin |
| 127 |
FdStartTime.Send(Value); |
| 128 |
end; |
| 129 |
|
| 130 |
function TAbstractTimeDependentNode.GetStopTime: TFloatTime; |
| 131 |
begin |
| 132 |
Result := FdStopTime.Value; |
| 133 |
end; |
| 134 |
|
| 135 |
procedure TAbstractTimeDependentNode.SetStopTime(const Value: TFloatTime); |
| 136 |
begin |
| 137 |
FdStopTime.Send(Value); |
| 138 |
end; |
| 139 |
|
| 140 |
class function TAbstractTimeDependentNode.ClassX3DType: String; |
| 141 |
begin |
| 142 |
Result := 'X3DTimeDependentNode'; |
| 143 |
end; |
| 144 |
|
| 145 |
procedure TAbstractTimeDependentNode.CreateNode; |
| 146 |
begin |
| 147 |
inherited; |
| 148 |
|
| 149 |
FFdLoop := TSFBool.Create(Self, True, 'loop', false); |
| 150 |
FdLoop.ChangeAlways := chVisibleNonGeometry; |
| 151 |
AddField(FFdLoop); |
| 152 |
|
| 153 |
FFdPauseTime := TSFTime.Create(Self, True, 'pauseTime', 0); |
| 154 |
FdPauseTime.ChangeAlways := chTimeStopStart; |
| 155 |
AddField(FFdPauseTime); |
| 156 |
|
| 157 |
FFdResumeTime := TSFTime.Create(Self, True, 'resumeTime', 0); |
| 158 |
FdResumeTime.ChangeAlways := chTimeStopStart; |
| 159 |
AddField(FFdResumeTime); |
| 160 |
|
| 161 |
FFdStartTime := TSFTime.Create(Self, True, 'startTime', 0); |
| 162 |
FdStartTime.ChangeAlways := chTimeStopStart; |
| 163 |
AddField(FFdStartTime); |
| 164 |
|
| 165 |
FFdStopTime := TSFTime.Create(Self, True, 'stopTime', 0); |
| 166 |
FdStopTime.ChangeAlways := chTimeStopStart; |
| 167 |
AddField(FFdStopTime); |
| 168 |
|
| 169 |
FEventElapsedTime := TSFTimeEvent.Create(Self, 'elapsedTime', false); |
| 170 |
AddEvent(FEventElapsedTime); |
| 171 |
|
| 172 |
FEventIsActive := TSFBoolEvent.Create(Self, 'isActive', false); |
| 173 |
AddEvent(FEventIsActive); |
| 174 |
|
| 175 |
FEventIsPaused := TSFBoolEvent.Create(Self, 'isPaused', false); |
| 176 |
AddEvent(FEventIsPaused); |
| 177 |
end; |
| 178 |
|
| 179 |
{$endif read_implementation} |