forked from TES5Edit/TES5Edit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wbScriptAdapterDF.pas
981 lines (796 loc) · 33.4 KB
/
wbScriptAdapterDF.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
unit wbScriptAdapterDF;
interface
uses
JvInterpreter;
procedure RegisterJvInterpreterAdapter(JvInterpreterAdapter: TJvInterpreterAdapter);
implementation
uses
Classes,
wbDataFormat,
wbDataFormatNif,
wbDataFormatMaterial,
wbDataFormatMisc;
const
sDFUnitName = 'wbDataFormat';
procedure JvInterpreter_dfFloatToStr(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := dfFloatToStr(Args.Values[0]);
end;
procedure JvInterpreter_dfStrToFloat(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := dfStrToFloat(Args.Values[0]);
end;
procedure JvInterpreter_dfCalcHash(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := dfCalcHash(Args.Values[0]);
end;
{ TdfDef }
procedure TdfDef_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
//Value := O2V(TdfDef.Create(V2O(Args.Values[0]) as TComponent));
end;
procedure TdfDef_Read_Name(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfDef(Args.Obj).Name;
end;
procedure TdfDef_DefaultDataSize(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfDef(Args.Obj).DefaultDataSize;
end;
procedure TdfDef_DefaultValue(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfDef(Args.Obj).DefaultDataSize;
end;
procedure TdfDef_Size(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfDef(Args.Obj).Size;
end;
{ TdfElement }
procedure TdfElement_DataType(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).DataType;
end;
procedure TdfElement_Def(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TdfElement(Args.Obj).Def);
end;
procedure TdfElement_Name(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).Name;
end;
procedure TdfElement_Path(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).Path;
end;
procedure TdfElement_Root(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TdfElement(Args.Obj).Root);
end;
procedure TdfElement_Read_Parent(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TdfElement(Args.Obj).Parent);
end;
procedure TdfElement_Write_Parent(const Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).Parent := TdfElement(V2O(Value));
end;
procedure TdfElement_DataSize(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).DataSize;
end;
procedure TdfElement_BeginUpdate(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).BeginUpdate;
end;
procedure TdfElement_EndUpdate(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).EndUpdate;
end;
procedure TdfElement_Read_Enabled(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).Enabled;
end;
procedure TdfElement_Write_Enabled(const Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).Enabled := Value;
end;
procedure TdfElement_Read_Count(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).Count;
end;
procedure TdfElement_Write_Count(const Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).Count := Value;
end;
procedure TdfElement_Index(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).Index;
end;
procedure TdfElement_IndexOf(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).IndexOf(TdfElement(V2O(Args.Values[0])));
end;
procedure TdfElement_Add(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TdfElement(Args.Obj).Add);
end;
procedure TdfElement_Remove(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).Remove;
end;
procedure TdfElement_Delete(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).Delete(Args.Values[0]);
end;
procedure TdfElement_Move(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).Move(Args.Values[0], Args.Values[1]);
end;
procedure TdfElement_LinksTo(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TdfElement(Args.Obj).LinksTo);
end;
procedure TdfElement_Read_NativeValue(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).NativeValue;
end;
procedure TdfElement_Write_NativeValue(const Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).NativeValue := Value;
end;
procedure TdfElement_Read_NativeValues(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).NativeValues[Args.Values[0]];
end;
procedure TdfElement_Write_NativeValues(const Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).NativeValues[Args.Values[0]] := Value;
end;
procedure TdfElement_Read_EditValue(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).EditValue;
end;
procedure TdfElement_Write_EditValue(const Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).EditValue := Value;
end;
procedure TdfElement_Read_EditValues(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).EditValues[Args.Values[0]];
end;
procedure TdfElement_Write_EditValues(const Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).EditValues[Args.Values[0]] := Value;
end;
procedure TdfElement_Read_Items(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TdfElement(Args.Obj).Items[Args.Values[0]]);
end;
procedure TdfElement_Read_Elements(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TdfElement(Args.Obj).Elements[Args.Values[0]]);
end;
procedure TdfElement_ElementByName(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TdfElement(Args.Obj).ElementByName(Args.Values[0], Args.Values[1]));
end;
procedure TdfElement_ElementByPath(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TdfElement(Args.Obj).ElementByPath(Args.Values[0], Args.Values[1]));
end;
procedure TdfElement_LoadFromData(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).LoadFromData(Args.Values[0]);
end;
procedure TdfElement_LoadFromFile(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).LoadFromFile(Args.Values[0]);
end;
procedure TdfElement_LoadFromJSONFile(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).LoadFromJSONFile(Args.Values[0]);
end;
procedure TdfElement_LoadFromResource(var Value: Variant; Args: TJvInterpreterArgs);
begin
case Args.Count of
0: JvInterpreterError(ieNotEnoughParams, -1);
1: TdfElement(Args.Obj).LoadFromResource(Args.Values[0]);
2: TdfElement(Args.Obj).LoadFromResource(Args.Values[0], Args.Values[1]);
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TdfElement_SaveToFile(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).SaveToFile(Args.Values[0]);
end;
procedure TdfElement_SaveToJSONFile(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).SaveToJSONFile(Args.Values[0], Args.Values[1]);
end;
procedure TdfElement_SetToDefault(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).SetToDefault;
end;
procedure TdfElement_Assign(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).Assign(TdfElement(V2O(Args.Values[0])));
end;
procedure TdfElement_FromJSON(var Value: Variant; Args: TJvInterpreterArgs);
begin
TdfElement(Args.Obj).FromJSON(Args.Values[0]);
end;
procedure TdfElement_ToJSON(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).ToJSON(Args.Values[0]);
end;
procedure TdfElement_ToText(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TdfElement(Args.Obj).ToText;
end;
{ TwbNiRef }
procedure TwbNiRef_Template(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNiRef(Args.Obj).Template;
end;
procedure TwbNiRef_Ptr(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNiRef(Args.Obj).Ptr;
end;
{ TwbNifBlock }
procedure TwbNifBlock_BlockType(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifBlock(Args.Obj).BlockType;
end;
procedure TwbNifBlock_NifFile(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifBlock(Args.Obj).NifFile);
end;
procedure TwbNifBlock_RefsCount(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifBlock(Args.Obj).RefsCount;
end;
procedure TwbNifBlock_Read_Refs(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifBlock(Args.Obj).Refs[Args.Values[0]]);
end;
procedure TwbNifBlock_StringsCount(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifBlock(Args.Obj).StringsCount;
end;
procedure TwbNifBlock_Read_Strings(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifBlock(Args.Obj).Strings[Args.Values[0]]);
end;
procedure TwbNifBlock_IsNiObject(var Value: Variant; Args: TJvInterpreterArgs);
begin
case Args.Count of
0: JvInterpreterError(ieNotEnoughParams, -1);
1: Value := TwbNifBlock(Args.Obj).IsNiObject(Args.Values[0]);
2: Value := TwbNifBlock(Args.Obj).IsNiObject(Args.Values[0], Args.Values[1]);
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifBlock_AddChild(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifBlock(Args.Obj).AddChild(Args.Values[0]));
end;
procedure TwbNifBlock_AddExtraData(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifBlock(Args.Obj).AddExtraData(Args.Values[0]));
end;
procedure TwbNifBlock_AddProperty(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifBlock(Args.Obj).AddProperty(Args.Values[0]));
end;
procedure TwbNifBlock_PropertyByName(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifBlock(Args.Obj).PropertyByName(Args.Values[0]));
end;
procedure TwbNifBlock_ExtraDataByName(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifBlock(Args.Obj).ExtraDataByName(Args.Values[0]));
end;
procedure TwbNifBlock_ChildrenByType(var Value: Variant; Args: TJvInterpreterArgs);
var
b: TwbNifBlock;
lst: TList;
begin
case Args.Count of
0, 1: JvInterpreterError(ieNotEnoughParams, -1);
2: begin
lst := TList(V2O(Args.Values[1]));
if Assigned(lst) then
for b in TwbNifBlock(Args.Obj).ChildrenByType(Args.Values[0]) do lst.Add(b);
end;
3: begin
lst := TList(V2O(Args.Values[2]));
if Assigned(lst) then
for b in TwbNifBlock(Args.Obj).ChildrenByType(Args.Values[0], Args.Values[1]) do lst.Add(b);
end else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifBlock_ChildByType(var Value: Variant; Args: TJvInterpreterArgs);
begin
case Args.Count of
0: JvInterpreterError(ieNotEnoughParams, -1);
1: Value := O2V(TwbNifBlock(Args.Obj).ChildByType(Args.Values[0]));
2: Value := O2V(TwbNifBlock(Args.Obj).ChildByType(Args.Values[0], Args.Values[1]));
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifBlock_PropertiesByType(var Value: Variant; Args: TJvInterpreterArgs);
var
b: TwbNifBlock;
lst: TList;
begin
case Args.Count of
0, 1: JvInterpreterError(ieNotEnoughParams, -1);
2: begin
lst := TList(V2O(Args.Values[1]));
if Assigned(lst) then
for b in TwbNifBlock(Args.Obj).PropertiesByType(Args.Values[0]) do lst.Add(b);
end;
3: begin
lst := TList(V2O(Args.Values[2]));
if Assigned(lst) then
for b in TwbNifBlock(Args.Obj).PropertiesByType(Args.Values[0], Args.Values[1]) do lst.Add(b);
end else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifBlock_PropertyByType(var Value: Variant; Args: TJvInterpreterArgs);
begin
case Args.Count of
0: JvInterpreterError(ieNotEnoughParams, -1);
1: Value := O2V(TwbNifBlock(Args.Obj).PropertyByType(Args.Values[0]));
2: Value := O2V(TwbNifBlock(Args.Obj).PropertyByType(Args.Values[0], Args.Values[1]));
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifBlock_ExtraDatasByType(var Value: Variant; Args: TJvInterpreterArgs);
var
b: TwbNifBlock;
lst: TList;
begin
case Args.Count of
0, 1: JvInterpreterError(ieNotEnoughParams, -1);
2: begin
lst := TList(V2O(Args.Values[1]));
if Assigned(lst) then
for b in TwbNifBlock(Args.Obj).ExtraDatasByType(Args.Values[0]) do lst.Add(b);
end;
3: begin
lst := TList(V2O(Args.Values[2]));
if Assigned(lst) then
for b in TwbNifBlock(Args.Obj).ExtraDatasByType(Args.Values[0], Args.Values[1]) do lst.Add(b);
end else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifBlock_ExtraDataByType(var Value: Variant; Args: TJvInterpreterArgs);
begin
case Args.Count of
0: JvInterpreterError(ieNotEnoughParams, -1);
1: Value := O2V(TwbNifBlock(Args.Obj).ExtraDataByType(Args.Values[0]));
2: Value := O2V(TwbNifBlock(Args.Obj).ExtraDataByType(Args.Values[0], Args.Values[1]));
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifBlock_UpdateBounds(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifBlock(Args.Obj).UpdateBounds;
end;
procedure TwbNifBlock_UpdateNormals(var Value: Variant; Args: TJvInterpreterArgs);
begin
case Args.Count of
0: Value := TwbNifBlock(Args.Obj).UpdateNormals;
1: Value := TwbNifBlock(Args.Obj).UpdateNormals(Args.Values[0]);
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifBlock_UpdateTangents(var Value: Variant; Args: TJvInterpreterArgs);
begin
case Args.Count of
0: Value := TwbNifBlock(Args.Obj).UpdateTangents;
1: Value := TwbNifBlock(Args.Obj).UpdateTangents(Args.Values[0]);
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifBlock_GetAssetsList(var Value: Variant; Args: TJvInterpreterArgs);
var
s: string;
begin
case Args.Count of
0: Value := TwbNifBlock(Args.Obj).GetAssetsList;
1: for s in TwbNifBlock(Args.Obj).GetAssetsList do TStrings(V2O(Args.Values[0])).Add(s);
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
{ TwbNifFile }
procedure TwbNifFile_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifFile.Create);
end;
procedure TwbNifFile_Read_NifVersion(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifFile(Args.Obj).NifVersion;
end;
procedure TwbNifFile_Write_NifVersion(const Value: Variant; Args: TJvInterpreterArgs);
begin
TwbNifFile(Args.Obj).NifVersion := Value;
end;
procedure TwbNifFile_Read_InternalUpdates(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifFile(Args.Obj).InternalUpdates;
end;
procedure TwbNifFile_Write_InternalUpdates(const Value: Variant; Args: TJvInterpreterArgs);
begin
TwbNifFile(Args.Obj).InternalUpdates := Value;
end;
procedure TwbNifFile_Read_Options(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := S2V(Byte(TwbNifFile(Args.Obj).Options));
end;
procedure TwbNifFile_Write_Options(const Value: Variant; Args: TJvInterpreterArgs);
begin
TwbNifFile(Args.Obj).Options := TwbNifOptions(Byte(V2S(Value)));
end;
procedure TwbNifFile_Header(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifFile(Args.Obj).Header);
end;
procedure TwbNifFile_Footer(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifFile(Args.Obj).Footer);
end;
procedure TwbNifFile_BlocksCount(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifFile(Args.Obj).BlocksCount;
end;
procedure TwbNifFile_Read_Blocks(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifFile(Args.Obj).Blocks[Args.Values[0]]);
end;
procedure TwbNifFile_AddBlock(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifFile(Args.Obj).AddBlock(Args.Values[0]));
end;
procedure TwbNifFile_InsertBlock(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifFile(Args.Obj).InsertBlock(Args.Values[0], Args.Values[1]));
end;
procedure TwbNifFile_ConvertBlock(var Value: Variant; Args: TJvInterpreterArgs);
begin
TwbNifFile(Args.Obj).ConvertBlock(Args.Values[0], Args.Values[1]);
end;
procedure TwbNifFile_CopyBlock(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifFile(Args.Obj).CopyBlock(Args.Values[0]));
end;
procedure TwbNifFile_BlockByType(var Value: Variant; Args: TJvInterpreterArgs);
begin
case Args.Count of
0: JvInterpreterError(ieNotEnoughParams, -1);
1: Value := O2V(TwbNifFile(Args.Obj).BlockByType(Args.Values[0]));
2: Value := O2V(TwbNifFile(Args.Obj).BlockByType(Args.Values[0], Args.Values[1]));
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifFile_BlocksByType(var Value: Variant; Args: TJvInterpreterArgs);
var
b: TwbNifBlock;
lst: TList;
begin
case Args.Count of
0, 1: JvInterpreterError(ieNotEnoughParams, -1);
2: begin
lst := TList(V2O(Args.Values[1]));
if Assigned(lst) then
for b in TwbNifFile(Args.Obj).BlocksByType(Args.Values[0]) do lst.Add(b);
end;
3: begin
lst := TList(V2O(Args.Values[2]));
if Assigned(lst) then
for b in TwbNifFile(Args.Obj).BlocksByType(Args.Values[0], Args.Values[1]) do lst.Add(b);
end else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
procedure TwbNifFile_BlockByName(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbNifFile(Args.Obj).BlockByName(Args.Values[0]));
end;
procedure TwbNifFile_SpellTriangulate(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifFile(Args.Obj).SpellTriangulate;
end;
procedure TwbNifFile_SpellFaceNormals(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifFile(Args.Obj).SpellFaceNormals;
end;
procedure TwbNifFile_SpellUpdateTangents(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifFile(Args.Obj).SpellUpdateTangents;
end;
procedure TwbNifFile_SpellAddUpdateTangents(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := TwbNifFile(Args.Obj).SpellAddUpdateTangents;
end;
procedure TwbNifFile_GetAssetsList(var Value: Variant; Args: TJvInterpreterArgs);
var
s: string;
begin
case Args.Count of
0: Value := TwbNifFile(Args.Obj).GetAssetsList;
1: for s in TwbNifFile(Args.Obj).GetAssetsList do TStrings(V2O(Args.Values[0])).Add(s);
else
JvInterpreterError(ieTooManyParams, -1);
end;
end;
{ TwbBGSMFile }
procedure TwbBGSMFile_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbBGSMFile.Create);
end;
{ TwbBGEMFile }
procedure TwbBGEMFile_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbBGEMFile.Create);
end;
{ TwbLODTreeLSTFile }
procedure TwbLODTreeLSTFile_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbLODTreeLSTFile.Create);
end;
{ TwbLODTreeBTTFile }
procedure TwbLODTreeBTTFile_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbLODTreeBTTFile.Create);
end;
{ TwbLODSettingsFO3File }
procedure TwbLODSettingsFO3File_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbLODSettingsFO3File.Create);
end;
{ TwbLODSettingsTES5File }
procedure TwbLODSettingsTES5File_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbLODSettingsTES5File.Create);
end;
{ TwbFUZFile }
procedure TwbFUZFile_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbFUZFile.Create);
end;
{ TwbDDSFile }
procedure TwbDDSFile_Create(var Value: Variant; Args: TJvInterpreterArgs);
begin
Value := O2V(TwbDDSFile.Create);
end;
procedure RegisterJvInterpreterAdapter(JvInterpreterAdapter: TJvInterpreterAdapter);
begin
with JvInterpreterAdapter do begin
// 'dt' prefix conflicts with xEdit's data types for plugins, use 'dft' instead
AddConst(sDFUnitName, 'dftNone', Ord(TdfDataType.dtNone));
AddConst(sDFUnitName, 'dftStruct', Ord(TdfDataType.dtStruct));
AddConst(sDFUnitName, 'dftArray', Ord(TdfDataType.dtArray));
AddConst(sDFUnitName, 'dftUnion', Ord(TdfDataType.dtUnion));
AddConst(sDFUnitName, 'dftMerge', Ord(TdfDataType.dtMerge));
AddConst(sDFUnitName, 'dftBytes', Ord(TdfDataType.dtBytes));
AddConst(sDFUnitName, 'dftChars', Ord(TdfDataType.dtChars));
AddConst(sDFUnitName, 'dftU8', Ord(TdfDataType.dtU8));
AddConst(sDFUnitName, 'dftS8', Ord(TdfDataType.dtS8));
AddConst(sDFUnitName, 'dftU16', Ord(TdfDataType.dtU16));
AddConst(sDFUnitName, 'dftS16', Ord(TdfDataType.dtS16));
AddConst(sDFUnitName, 'dftU32', Ord(TdfDataType.dtU32));
AddConst(sDFUnitName, 'dftS32', Ord(TdfDataType.dtS32));
AddConst(sDFUnitName, 'dftU64', Ord(TdfDataType.dtU64));
AddConst(sDFUnitName, 'dftS64', Ord(TdfDataType.dtS64));
AddConst(sDFUnitName, 'dftFloat16', Ord(TdfDataType.dtFloat16));
AddConst(sDFUnitName, 'dftFloat32', Ord(TdfDataType.dtFloat32));
AddFunction(sDFUnitName, 'dfFloatToStr', JvInterpreter_dfFloatToStr, 1, [varEmpty], varEmpty);
AddFunction(sDFUnitName, 'dfStrToFloat', JvInterpreter_dfStrToFloat, 1, [varEmpty], varEmpty);
AddFunction(sDFUnitName, 'dfCalcHash', JvInterpreter_dfCalcHash, 1, [varEmpty], varEmpty);
{ TdfDef }
AddClass(sDFUnitName, TdfDef, 'TdfDef');
//AddGet(TdfDef, 'Create', TdfDef_Create, 1, [varEmpty], varEmpty);
AddGet(TdfDef, 'Name', TdfDef_Read_Name, 0, [varEmpty], varEmpty);
AddGet(TdfDef, 'DefaultDataSize', TdfDef_DefaultDataSize, 0, [varEmpty], varEmpty);
AddGet(TdfDef, 'DefaultValue', TdfDef_DefaultValue, 0, [varEmpty], varEmpty);
AddGet(TdfDef, 'Size', TdfDef_Size, 0, [varEmpty], varEmpty);
{ TdfElement }
AddClass(sDFUnitName, TdfElement, 'TdfElement');
AddGet(TdfElement, 'DataType', TdfElement_DataType, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'Def', TdfElement_Def, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'Name', TdfElement_Name, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'Path', TdfElement_Path, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'Root', TdfElement_Root, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'Parent', TdfElement_Read_Parent, 0, [varEmpty], varEmpty);
AddSet(TdfElement, 'Parent', TdfElement_Write_Parent, 0, [varEmpty]);
AddGet(TdfElement, 'DataSize', TdfElement_DataSize, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'BeginUpdate', TdfElement_BeginUpdate, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'EndUpdate', TdfElement_EndUpdate, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'Enabled', TdfElement_Read_Enabled, 0, [varEmpty], varEmpty);
AddSet(TdfElement, 'Enabled', TdfElement_Write_Enabled, 0, [varEmpty]);
AddGet(TdfElement, 'Count', TdfElement_Read_Count, 0, [varEmpty], varEmpty);
AddSet(TdfElement, 'Count', TdfElement_Write_Count, 0, [varEmpty]);
AddGet(TdfElement, 'Index', TdfElement_Index, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'IndexOf', TdfElement_IndexOf, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'Add', TdfElement_Add, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'Remove', TdfElement_Remove, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'Delete', TdfElement_Delete, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'Move', TdfElement_Move, 2, [varEmpty, varEmpty], varEmpty);
AddGet(TdfElement, 'LinksTo', TdfElement_LinksTo, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'NativeValue', TdfElement_Read_NativeValue, 0, [varEmpty], varEmpty);
AddSet(TdfElement, 'NativeValue', TdfElement_Write_NativeValue, 0, [varEmpty]);
AddIGet(TdfElement, 'NativeValues', TdfElement_Read_NativeValues, 1, [varEmpty], varEmpty);
AddISet(TdfElement, 'NativeValues', TdfElement_Write_NativeValues, 1, [varNull]);
AddGet(TdfElement, 'EditValue', TdfElement_Read_EditValue, 0, [varEmpty], varEmpty);
AddSet(TdfElement, 'EditValue', TdfElement_Write_EditValue, 0, [varEmpty]);
AddIGet(TdfElement, 'EditValues', TdfElement_Read_EditValues, 1, [varEmpty], varEmpty);
AddISet(TdfElement, 'EditValues', TdfElement_Write_EditValues, 1, [varNull]);
AddIGet(TdfElement, 'Items', TdfElement_Read_Items, 1, [varEmpty], varEmpty);
AddIDGet(TdfElement, TdfElement_Read_Items, 1, [varEmpty], varEmpty);
AddIGet(TdfElement, 'Elements', TdfElement_Read_Elements, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'ElementByName', TdfElement_ElementByName, 2, [varEmpty, varEmpty], varEmpty);
AddGet(TdfElement, 'ElementByPath', TdfElement_ElementByPath, 2, [varEmpty, varEmpty], varEmpty);
AddGet(TdfElement, 'LoadFromData', TdfElement_LoadFromData, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'LoadFromFile', TdfElement_LoadFromFile, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'LoadFromJSONFile', TdfElement_LoadFromJSONFile, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'LoadFromResource', TdfElement_LoadFromResource, -1, [varEmpty, varEmpty], varEmpty);
AddGet(TdfElement, 'SaveToFile', TdfElement_SaveToFile, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'SaveToJSONFile', TdfElement_SaveToJSONFile, 2, [varEmpty, varEmpty], varEmpty);
AddGet(TdfElement, 'SetToDefault', TdfElement_SetToDefault, 0, [varEmpty], varEmpty);
AddGet(TdfElement, 'Assign', TdfElement_Assign, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'FromJSON', TdfElement_FromJSON, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'ToJSON', TdfElement_ToJSON, 1, [varEmpty], varEmpty);
AddGet(TdfElement, 'ToText', TdfElement_ToText, 0, [varEmpty], varEmpty);
{ TdfValue }
AddClass(sDFUnitName, TdfValueDef, 'TdfValueDef');
AddClass(sDFUnitName, TdfValue, 'TdfValue');
{ TdfContainer }
AddClass(sDFUnitName, TdfContainer, 'TdfContainer');
{ TdfArray }
AddClass(sDFUnitName, TdfArrayDef, 'TdfArrayDef');
AddClass(sDFUnitName, TdfArray, 'TdfArray');
{ TdfStruct }
AddClass(sDFUnitName, TdfStructDef, 'TdfStructDef');
AddClass(sDFUnitName, TdfStruct, 'TdfStruct');
{ TdfUnion }
AddClass(sDFUnitName, TdfUnionDef, 'TdfUnionDef');
AddClass(sDFUnitName, TdfUnion, 'TdfUnion');
{ TdfValueUnion }
AddClass(sDFUnitName, TdfValueUnionDef, 'TdfValueUnionDef');
AddClass(sDFUnitName, TdfValueUnion, 'TdfValueUnion');
{ TdfMerge }
AddClass(sDFUnitName, TdfMergeDef, 'TdfMergeDef');
AddClass(sDFUnitName, TdfMerge, 'TdfMerge');
{ TdfInteger }
AddClass(sDFUnitName, TdfIntegerDef, 'TdfIntegerDef');
AddClass(sDFUnitName, TdfInteger, 'TdfInteger');
AddClass(sDFUnitName, TdfMappedIntegerDef, 'TdfMappedIntegerDef');
{ TdfFlags }
AddClass(sDFUnitName, TdfFlagsDef, 'TdfFlagsDef');
AddClass(sDFUnitName, TdfFlags, 'TdfFlags');
{ TdfEnum }
AddClass(sDFUnitName, TdfEnumDef, 'TdfEnumDef');
AddClass(sDFUnitName, TdfEnum, 'TdfEnum');
{ TdfFloat }
AddClass(sDFUnitName, TdfFloatDef, 'TdfFloatDef');
AddClass(sDFUnitName, TdfFloat, 'TdfFloat');
{ TdfBytes }
AddClass(sDFUnitName, TdfBytesDef, 'TdfBytesDef');
AddClass(sDFUnitName, TdfBytes, 'TdfBytes');
{ TdfChars }
AddClass(sDFUnitName, TdfCharsDef, 'TdfCharsDef');
AddClass(sDFUnitName, TdfChars, 'TdfChars');
{ NIF }
{ TwbNifOptions }
AddConst(sDFUnitName, 'nfoCollapseLinkArrays', Ord(TwbNifOption.nfoCollapseLinkArrays));
AddConst(sDFUnitName, 'nfoRemoveUnusedStrings', Ord(TwbNifOption.nfoRemoveUnusedStrings));
{ TwbNifVersion }
AddConst(sDFUnitName, 'nfTES3', Ord(TwbNifVersion.nfTES3));
AddConst(sDFUnitName, 'nfTES4', Ord(TwbNifVersion.nfTES4));
AddConst(sDFUnitName, 'nfFO3', Ord(TwbNifVersion.nfFO3));
AddConst(sDFUnitName, 'nfTES5', Ord(TwbNifVersion.nfTES5));
AddConst(sDFUnitName, 'nfSSE', Ord(TwbNifVersion.nfSSE));
AddConst(sDFUnitName, 'nfFO4', Ord(TwbNifVersion.nfFO4));
{ TwbNiRef }
AddClass(sDFUnitName, TwbNiRefDef, 'TwbNiRefDef');
AddClass(sDFUnitName, TwbNiRef, 'TwbNiRef');
AddGet(TwbNiRef, 'Template', TwbNiRef_Template, 0, [varEmpty], varEmpty);
AddGet(TwbNiRef, 'Ptr', TwbNiRef_Ptr, 0, [varEmpty], varEmpty);
{ TwbNifBlock }
AddClass(sDFUnitName, TwbNifBlockDef, 'TwbNifBlockDef');
AddClass(sDFUnitName, TwbNifBlock, 'TwbNifBlock');
AddGet(TwbNifBlock, 'BlockType', TwbNifBlock_BlockType, 0, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'NifFile', TwbNifBlock_NifFile, 0, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'RefsCount', TwbNifBlock_RefsCount, 0, [varEmpty], varEmpty);
AddIGet(TwbNifBlock, 'Refs', TwbNifBlock_Read_Refs, 1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'StringsCount', TwbNifBlock_StringsCount, 0, [varEmpty], varEmpty);
AddIGet(TwbNifBlock, 'Strings', TwbNifBlock_Read_Strings, 1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'IsNiObject', TwbNifBlock_IsNiObject, -1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'AddChild', TwbNifBlock_AddChild, 1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'AddExtraData', TwbNifBlock_AddExtraData, 1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'AddProperty', TwbNifBlock_AddProperty, 1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'PropertyByName', TwbNifBlock_PropertyByName, 1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'ExtraDataByName', TwbNifBlock_ExtraDataByName, 1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'ChildrenByType', TwbNifBlock_ChildrenByType, -1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'ChildByType', TwbNifBlock_ChildByType, -1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'PropertiesByType', TwbNifBlock_PropertiesByType, -1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'PropertyByType', TwbNifBlock_PropertyByType, -1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'ExtraDatasByType', TwbNifBlock_ExtraDatasByType, -1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'ExtraDataByType', TwbNifBlock_ExtraDataByType, -1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'UpdateBounds', TwbNifBlock_UpdateBounds, 0, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'UpdateNormals', TwbNifBlock_UpdateNormals, -1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'UpdateTangents', TwbNifBlock_UpdateTangents, -1, [varEmpty], varEmpty);
AddGet(TwbNifBlock, 'GetAssetsList', TwbNifBlock_GetAssetsList, -1, [varEmpty], varEmpty);
{ TwbNifFile }
AddClass(sDFUnitName, TwbNifFile, 'TwbNifFile');
AddGet(TwbNifFile, 'Create', TwbNifFile_Create, 0, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'NifVersion', TwbNifFile_Read_NifVersion, 0, [varEmpty], varEmpty);
AddSet(TwbNifFile, 'NifVersion', TwbNifFile_Write_NifVersion, 0, [varEmpty]);
AddGet(TwbNifFile, 'InternalUpdates', TwbNifFile_Read_InternalUpdates, 0, [varEmpty], varEmpty);
AddSet(TwbNifFile, 'InternalUpdates', TwbNifFile_Write_InternalUpdates, 0, [varEmpty]);
AddGet(TwbNifFile, 'Options', TwbNifFile_Read_Options, 0, [varEmpty], varEmpty);
AddSet(TwbNifFile, 'Options', TwbNifFile_Write_Options, 0, [varEmpty]);
AddGet(TwbNifFile, 'Header', TwbNifFile_Header, 0, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'Footer', TwbNifFile_Footer, 0, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'BlocksCount', TwbNifFile_BlocksCount, 0, [varEmpty], varEmpty);
AddIGet(TwbNifFile, 'Blocks', TwbNifFile_Read_Blocks, 1, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'AddBlock', TwbNifFile_AddBlock, 1, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'InsertBlock', TwbNifFile_InsertBlock, 2, [varEmpty, varEmpty], varEmpty);
AddGet(TwbNifFile, 'ConvertBlock', TwbNifFile_ConvertBlock, 2, [varEmpty, varEmpty], varEmpty);
AddGet(TwbNifFile, 'CopyBlock', TwbNifFile_CopyBlock, 1, [varEmpty, varEmpty], varEmpty);
AddGet(TwbNifFile, 'BlockByType', TwbNifFile_BlockByType, -1, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'BlocksByType', TwbNifFile_BlocksByType, -1, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'BlockByName', TwbNifFile_BlockByName, 1, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'SpellTriangulate', TwbNifFile_SpellTriangulate, 0, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'SpellFaceNormals', TwbNifFile_SpellFaceNormals, 0, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'SpellUpdateTangents', TwbNifFile_SpellUpdateTangents, 0, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'SpellAddUpdateTangents', TwbNifFile_SpellAddUpdateTangents, 0, [varEmpty], varEmpty);
AddGet(TwbNifFile, 'GetAssetsList', TwbNifFile_GetAssetsList, -1, [varEmpty], varEmpty);
{ Others }
{ TwbBGSMFile }
AddClass(sDFUnitName, TwbBGSMFile, 'TwbBGSMFile');
AddGet(TwbBGSMFile, 'Create', TwbBGSMFile_Create, 0, [varEmpty], varEmpty);
{ TwbBGEMFile }
AddClass(sDFUnitName, TwbBGEMFile, 'TwbBGEMFile');
AddGet(TwbBGEMFile, 'Create', TwbBGEMFile_Create, 0, [varEmpty], varEmpty);
{ TwbLODTreeLSTFile }
AddClass(sDFUnitName, TwbLODTreeLSTFile, 'TwbLODTreeLSTFile');
AddGet(TwbLODTreeLSTFile, 'Create', TwbLODTreeLSTFile_Create, 0, [varEmpty], varEmpty);
{ TwbLODTreeBTTFile }
AddClass(sDFUnitName, TwbLODTreeBTTFile, 'TwbLODTreeBTTFile');
AddGet(TwbLODTreeBTTFile, 'Create', TwbLODTreeBTTFile_Create, 0, [varEmpty], varEmpty);
{ TwbLODSettingsFO3File }
AddClass(sDFUnitName, TwbLODSettingsFO3File, 'TwbLODSettingsFO3File');
AddGet(TwbLODSettingsFO3File, 'Create', TwbLODSettingsFO3File_Create, 0, [varEmpty], varEmpty);
{ TwbLODSettingsTES5File }
AddClass(sDFUnitName, TwbLODSettingsTES5File, 'TwbLODSettingsTES5File');
AddGet(TwbLODSettingsTES5File, 'Create', TwbLODSettingsTES5File_Create, 0, [varEmpty], varEmpty);
{ TwbFUZFile }
AddClass(sDFUnitName, TwbFUZFile, 'TwbFUZFile');
AddGet(TwbFUZFile, 'Create', TwbFUZFile_Create, 0, [varEmpty], varEmpty);
{ TwbDDSFile }
AddClass(sDFUnitName, TwbDDSFile, 'TwbDDSFile');
AddGet(TwbDDSFile, 'Create', TwbDDSFile_Create, 0, [varEmpty], varEmpty);
end;
end;
procedure Init;
begin
RegisterJvInterpreterAdapter(GlobalJvInterpreterAdapter);
end;
initialization
Init;
end.