Debian Codegraph @

src/scene/x3d/auto_generated_node_helpers/x3dnodes_disentitymanager.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 GetAddress: String;
28 procedure SetAddress(const Value: String);
29 function GetApplicationID: Integer;
30 procedure SetApplicationID(const Value: Integer);
31 function GetPort: Integer;
32 procedure SetPort(const Value: Integer);
33 function GetSiteID: Integer;
34 procedure SetSiteID(const Value: Integer);
35 public
36 { Create node fields and events. }
37 procedure CreateNode; override;
38 class function ClassX3DType: String; override;
39
40 strict private FFdAddress: TSFString;
41 { Internal wrapper for property @code(Address). This wrapper API may change, we advise to access simpler @code(Address) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
42 public property FdAddress: TSFString read FFdAddress;
43 { }
44 property Address: String read GetAddress write SetAddress;
45
46 strict private FFdApplicationID: TSFInt32;
47 { Internal wrapper for property @code(ApplicationID). This wrapper API may change, we advise to access simpler @code(ApplicationID) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
48 public property FdApplicationID: TSFInt32 read FFdApplicationID;
49 { }
50 property ApplicationID: Integer read GetApplicationID write SetApplicationID;
51
52 strict private FFdChildren: TMFNode;
53 { Internal wrapper for property @code(Children). This wrapper API may change, we advise to access simpler @code(Children) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
54 public property FdChildren: TMFNode read FFdChildren;
55 { }
56 procedure SetChildren(const Value: array of TDISEntityTypeMappingNode);
57
58 strict private FFdPort: TSFInt32;
59 { Internal wrapper for property @code(Port). This wrapper API may change, we advise to access simpler @code(Port) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
60 public property FdPort: TSFInt32 read FFdPort;
61 { }
62 property Port: Integer read GetPort write SetPort;
63
64 strict private FFdSiteID: TSFInt32;
65 { Internal wrapper for property @code(SiteID). This wrapper API may change, we advise to access simpler @code(SiteID) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). }
66 public property FdSiteID: TSFInt32 read FFdSiteID;
67 { }
68 property SiteID: Integer read GetSiteID write SetSiteID;
69
70 strict private FEventAddedEntities: TMFNodeEvent;
71 { }
72 public property EventAddedEntities: TMFNodeEvent read FEventAddedEntities;
73
74 strict private FEventRemovedEntities: TMFNodeEvent;
75 { }
76 public property EventRemovedEntities: TMFNodeEvent read FEventRemovedEntities;
77
78 {$endif read_interface}
79
80 {$ifdef read_implementation}
81
82 { TDISEntityManagerNode ----------------------------------------------- }
83
84 function TDISEntityManagerNode.GetAddress: String;
85 begin
86 Result := FdAddress.Value;
87 end;
88
89 procedure TDISEntityManagerNode.SetAddress(const Value: String);
90 begin
91 FdAddress.Send(Value);
92 end;
93
94 function TDISEntityManagerNode.GetApplicationID: Integer;
95 begin
96 Result := FdApplicationID.Value;
97 end;
98
99 procedure TDISEntityManagerNode.SetApplicationID(const Value: Integer);
100 begin
101 FdApplicationID.Send(Value);
102 end;
103
104 procedure TDISEntityManagerNode.SetChildren(const Value: array of TDISEntityTypeMappingNode);
105 var
106 L: Integer;
107 A: array of TX3DNode;
108 begin
109 L := High(Value) + 1;
110 SetLength(A, L);
111 if L > 0 then
112 Move(Value[0], A[0], L * SizeOf(TDISEntityTypeMappingNode));
113 FdChildren.Send(A);
114 end;
115
116 function TDISEntityManagerNode.GetPort: Integer;
117 begin
118 Result := FdPort.Value;
119 end;
120
121 procedure TDISEntityManagerNode.SetPort(const Value: Integer);
122 begin
123 FdPort.Send(Value);
124 end;
125
126 function TDISEntityManagerNode.GetSiteID: Integer;
127 begin
128 Result := FdSiteID.Value;
129 end;
130
131 procedure TDISEntityManagerNode.SetSiteID(const Value: Integer);
132 begin
133 FdSiteID.Send(Value);
134 end;
135
136 class function TDISEntityManagerNode.ClassX3DType: String;
137 begin
138 Result := 'DISEntityManager';
139 end;
140
141 procedure TDISEntityManagerNode.CreateNode;
142 begin
143 inherited;
144
145 FFdAddress := TSFString.Create(Self, True, 'address', 'localhost');
146 FdAddress.ChangeAlways := chVisibleNonGeometry;
147 AddField(FFdAddress);
148
149 FFdApplicationID := TSFInt32.Create(Self, True, 'applicationID', 1);
150 FdApplicationID.ChangeAlways := chVisibleNonGeometry;
151 AddField(FFdApplicationID);
152
153 FFdChildren := TMFNode.Create(Self, True, 'children', [TDISEntityTypeMappingNode]);
154 FdChildren.ChangeAlways := chVisibleNonGeometry;
155 AddField(FFdChildren);
156
157 FFdPort := TSFInt32.Create(Self, True, 'port', 0);
158 FdPort.ChangeAlways := chVisibleNonGeometry;
159 AddField(FFdPort);
160
161 FFdSiteID := TSFInt32.Create(Self, True, 'siteID', 0);
162 FdSiteID.ChangeAlways := chVisibleNonGeometry;
163 AddField(FFdSiteID);
164
165 FEventAddedEntities := TMFNodeEvent.Create(Self, 'addedEntities', false);
166 AddEvent(FEventAddedEntities);
167
168 FEventRemovedEntities := TMFNodeEvent.Create(Self, 'removedEntities', false);
169 AddEvent(FEventRemovedEntities);
170 end;
171
172 {$endif read_implementation}