| 1 |
{%MainUnit x3dfields.pas} |
| 2 |
{ |
| 3 |
Copyright 2002-2018 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 |
{$ifdef read_interface} |
| 18 |
|
| 19 |
{ X3D field with a list of values. } |
| 20 |
TX3DMultField = class(TX3DField) |
| 21 |
strict protected |
| 22 |
{ Get or set the number of items, see @link(Count). |
| 23 |
@groupBegin } |
| 24 |
function GetCount: TListSize; virtual; abstract; |
| 25 |
procedure SetCount(const Value: TListSize); virtual; abstract; |
| 26 |
{ @groupEnd } |
| 27 |
public |
| 28 |
{ Number of items in this field. |
| 29 |
|
| 30 |
Remember that increasing this generally sets new items to undefined |
| 31 |
values (see SetCount documentation of particular descendant for docs). |
| 32 |
So you usually want to initialize them afterwards to something correct. } |
| 33 |
property Count: TListSize read GetCount write SetCount; |
| 34 |
end; |
| 35 |
|
| 36 |
{$endif read_interface} |
| 37 |
|
| 38 |
{$ifdef read_implementation} |
| 39 |
|
| 40 |
{$endif read_implementation} |