| 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 GetAutoRefresh: TFloatTime; |
| 28 |
procedure SetAutoRefresh(const Value: TFloatTime); |
| 29 |
function GetAutoRefreshTimeLimit: TFloatTime; |
| 30 |
procedure SetAutoRefreshTimeLimit(const Value: TFloatTime); |
| 31 |
function GetLoad: Boolean; |
| 32 |
procedure SetLoad(const Value: Boolean); |
| 33 |
public |
| 34 |
{ Create node fields and events. } |
| 35 |
procedure CreateNode; override; |
| 36 |
class function ClassX3DType: String; override; |
| 37 |
|
| 38 |
strict private FFdAutoRefresh: TSFTime; |
| 39 |
{ Internal wrapper for property @code(AutoRefresh). This wrapper API may change, we advise to access simpler @code(AutoRefresh) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 40 |
public property FdAutoRefresh: TSFTime read FFdAutoRefresh; |
| 41 |
{ } |
| 42 |
property AutoRefresh: TFloatTime read GetAutoRefresh write SetAutoRefresh; |
| 43 |
|
| 44 |
strict private FFdAutoRefreshTimeLimit: TSFTime; |
| 45 |
{ Internal wrapper for property @code(AutoRefreshTimeLimit). This wrapper API may change, we advise to access simpler @code(AutoRefreshTimeLimit) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 46 |
public property FdAutoRefreshTimeLimit: TSFTime read FFdAutoRefreshTimeLimit; |
| 47 |
{ } |
| 48 |
property AutoRefreshTimeLimit: TFloatTime read GetAutoRefreshTimeLimit write SetAutoRefreshTimeLimit; |
| 49 |
|
| 50 |
strict private FFdLoad: TSFBool; |
| 51 |
{ Internal wrapper for property @code(Load). This wrapper API may change, we advise to access simpler @code(Load) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 52 |
public property FdLoad: TSFBool read FFdLoad; |
| 53 |
{ } |
| 54 |
property Load: Boolean read GetLoad write SetLoad; |
| 55 |
|
| 56 |
strict private FFdUrl: TMFString; |
| 57 |
{ Internal wrapper for property @code(Url). This wrapper API may change, we advise to access simpler @code(Url) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 58 |
public property FdUrl: TMFString read FFdUrl; |
| 59 |
{ } |
| 60 |
procedure SetUrl(const Value: array of string); overload; |
| 61 |
{ } |
| 62 |
procedure SetUrl(const Value: TCastleStringList); overload; |
| 63 |
|
| 64 |
{$endif read_interface} |
| 65 |
|
| 66 |
{$ifdef read_implementation} |
| 67 |
|
| 68 |
{ TAudioClipNode ----------------------------------------------- } |
| 69 |
|
| 70 |
function TAudioClipNode.GetAutoRefresh: TFloatTime; |
| 71 |
begin |
| 72 |
Result := FdAutoRefresh.Value; |
| 73 |
end; |
| 74 |
|
| 75 |
procedure TAudioClipNode.SetAutoRefresh(const Value: TFloatTime); |
| 76 |
begin |
| 77 |
FdAutoRefresh.Send(Value); |
| 78 |
end; |
| 79 |
|
| 80 |
function TAudioClipNode.GetAutoRefreshTimeLimit: TFloatTime; |
| 81 |
begin |
| 82 |
Result := FdAutoRefreshTimeLimit.Value; |
| 83 |
end; |
| 84 |
|
| 85 |
procedure TAudioClipNode.SetAutoRefreshTimeLimit(const Value: TFloatTime); |
| 86 |
begin |
| 87 |
FdAutoRefreshTimeLimit.Send(Value); |
| 88 |
end; |
| 89 |
|
| 90 |
function TAudioClipNode.GetLoad: Boolean; |
| 91 |
begin |
| 92 |
Result := FdLoad.Value; |
| 93 |
end; |
| 94 |
|
| 95 |
procedure TAudioClipNode.SetLoad(const Value: Boolean); |
| 96 |
begin |
| 97 |
FdLoad.Send(Value); |
| 98 |
end; |
| 99 |
|
| 100 |
procedure TAudioClipNode.SetUrl(const Value: array of string); |
| 101 |
begin |
| 102 |
FdUrl.Send(Value); |
| 103 |
end; |
| 104 |
|
| 105 |
procedure TAudioClipNode.SetUrl(const Value: TCastleStringList); |
| 106 |
begin |
| 107 |
FdUrl.Send(Value); |
| 108 |
end; |
| 109 |
|
| 110 |
class function TAudioClipNode.ClassX3DType: String; |
| 111 |
begin |
| 112 |
Result := 'AudioClip'; |
| 113 |
end; |
| 114 |
|
| 115 |
procedure TAudioClipNode.CreateNode; |
| 116 |
begin |
| 117 |
inherited; |
| 118 |
|
| 119 |
FFdAutoRefresh := TSFTime.Create(Self, True, 'autoRefresh', 0.0); |
| 120 |
FdAutoRefresh.ChangeAlways := chVisibleNonGeometry; |
| 121 |
AddField(FFdAutoRefresh); |
| 122 |
|
| 123 |
FFdAutoRefreshTimeLimit := TSFTime.Create(Self, True, 'autoRefreshTimeLimit', 3600.0); |
| 124 |
FdAutoRefreshTimeLimit.ChangeAlways := chVisibleNonGeometry; |
| 125 |
AddField(FFdAutoRefreshTimeLimit); |
| 126 |
|
| 127 |
FFdLoad := TSFBool.Create(Self, True, 'load', true); |
| 128 |
FdLoad.ChangeAlways := chVisibleNonGeometry; |
| 129 |
AddField(FFdLoad); |
| 130 |
|
| 131 |
FFdUrl := TMFString.Create(Self, True, 'url', []); |
| 132 |
FdUrl.ChangeAlways := chVisibleNonGeometry; |
| 133 |
AddField(FFdUrl); |
| 134 |
|
| 135 |
DefaultContainerField := 'source'; |
| 136 |
end; |
| 137 |
|
| 138 |
{$endif read_implementation} |