-
Notifications
You must be signed in to change notification settings - Fork 14
/
Module.cs
1013 lines (905 loc) · 24.9 KB
/
Module.cs
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
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
using System;
using System.Globalization;
using EVE.ISXEVE.Extensions;
using EVE.ISXEVE.Interfaces;
using LavishScriptAPI;
using System.Collections.Generic;
namespace EVE.ISXEVE
{
/// <summary>
/// Wrapper for the module data type.
/// </summary>
public class Module : LavishScriptObject, IModule
{
#region Constructors
/// <summary>
/// Module object constructor.
/// </summary>
/// <param name="moduleSlot"></param>
public Module(string moduleSlot)
: base(LavishScript.Objects.GetObject("MyShip").GetMember("Module", moduleSlot))
{
}
/// <summary>
/// Module object copy constructor.
/// </summary>
/// <param name="copy"></param>
public Module(LavishScriptObject copy)
: base(copy)
{
}
#endregion
#region Members
private Int64? _id;
public Int64 ID
{
get
{
if (_id == null)
_id = this.GetInt64("ID");
return _id.Value;
}
}
private IItem _toItem;
/// <summary>
/// Access the module as an item type.
/// </summary>
public IItem ToItem
{
get
{
return _toItem ?? (_toItem = new Item(GetMember("ToItem")));
}
}
private double? _shieldTransferRange;
/// <summary>
/// Returns the ShieldTransferRange member of a module object.
/// </summary>
public double ShieldTransferRange
{
get
{
if (_shieldTransferRange == null)
_shieldTransferRange = this.GetDouble("ShieldTransferRange");
return _shieldTransferRange.Value;
}
}
private bool? _usesFrequencyCrystals;
/// <summary>
/// Returns the UsesFrequencyCrystals member of a module object.
/// </summary>
public bool UsesFrequencyCrystals
{
get
{
if (_usesFrequencyCrystals == null)
_usesFrequencyCrystals = this.GetBool("UsesFrequencyCrystals");
return _usesFrequencyCrystals.Value;
}
}
private bool? _isGoingOnline;
/// <summary>
/// Returns the IsGoingOnline member of a module object.
/// </summary>
public bool IsGoingOnline
{
get
{
if (_isGoingOnline == null)
_isGoingOnline = this.GetBool("IsGoingOnline");
return _isGoingOnline.Value;
}
}
private bool? _isWaitingForActiveTarget;
/// <summary>
/// Returns the IsWaitingForActiveTarget member of a module object.
/// </summary>
public bool IsWaitingForActiveTarget
{
get
{
if (_isWaitingForActiveTarget == null)
_isWaitingForActiveTarget = this.GetBool("IsWaitingForActiveTarget");
return _isWaitingForActiveTarget.Value;
}
}
private bool? _isChangingAmmo;
/// <summary>
/// Wrapper for the IsWaitingForActiveTarget member of a module object.
/// </summary>
public bool IsChangingAmmo
{
get
{
if (_isChangingAmmo == null)
_isChangingAmmo = this.GetBool("IsChangingAmmo");
return _isChangingAmmo.Value;
}
}
private bool? _isReloadingAmmo;
/// <summary>
/// Wrapper for the IsReloadingAmmo member of a module object.
/// </summary>
public bool IsReloadingAmmo
{
get
{
if (_isReloadingAmmo == null)
_isReloadingAmmo = this.GetBool("IsReloadingAmmo");
return _isReloadingAmmo.Value;
}
}
private bool? _isOnline;
/// <summary>
/// Is module online (as opposed to active)
/// </summary>
public bool IsOnline
{
get
{
if (_isOnline == null)
_isOnline = this.GetBool("IsOnline");
return _isOnline.Value;
}
}
private bool? _isDeactivating;
/// <summary>
/// Wrapper for the IsDeactivating member of a module object.
/// </summary>
public bool IsDeactivating
{
get
{
if (_isDeactivating == null)
_isDeactivating = this.GetBool("IsDeactivating");
return _isDeactivating.Value;
}
}
private bool? _isActivatable;
/// <summary>
/// Wrapper for the IsActivatable member of a module object.
/// </summary>
public bool IsActivatable
{
get
{
if (_isActivatable == null)
_isActivatable = this.GetBool("IsActivatable");
return _isActivatable.Value;
}
}
private bool? _isAutoReloadOn;
/// <summary>
/// Wrapper for the IsAutoReloadOn member of a module object.
/// </summary>
public bool IsAutoReloadOn
{
get
{
if (_isAutoReloadOn == null)
_isAutoReloadOn = this.GetBool("IsAutoReloadOn");
return _isAutoReloadOn.Value;
}
}
private List<Item> _availableAmmo;
/// <summary>
/// Wrapper for the GetAvailableAmmo member of a module object.
/// </summary>
public List<Item> GetAvailableAmmo()
{
Tracing.SendCallback("Module.GetAvailableAmmo");
return _availableAmmo ?? (_availableAmmo = Util.GetListFromMethod<Item>(this, "GetAvailableAmmo", "item"));
}
private double? _specialtyCrystalMiningAmount;
/// <summary>
/// Wrapper for the SpecialtyCrystalMiningAmount member of a module object.
/// </summary>
public double SpecialtyCrystalMiningAmount
{
get
{
if (_specialtyCrystalMiningAmount == null)
_specialtyCrystalMiningAmount = this.GetDouble("SpecialtyCrystalMiningAmount");
return _specialtyCrystalMiningAmount.Value;
}
}
private string _defaultEffectName;
/// <summary>
/// Wrapper for the DefaultEffectName member of a module object.
/// </summary>
public string DefaultEffectName
{
get
{
return _defaultEffectName ?? (_defaultEffectName = this.GetString("DefaultEffectiveName"));
}
}
private string _defaultEffectDescription;
/// <summary>
/// Wrapper for the DefaultEffectDescription member of a module object.
/// </summary>
public string DefaultEffectDescription
{
get { return _defaultEffectDescription ?? (_defaultEffectDescription = this.GetString("DefaultEffectiveDescription")); }
}
private Entity _lastTarget;
/// <summary>
/// This member returns the last target upon which the module was activated.
/// </summary>
public Entity LastTarget
{
get { return _lastTarget ?? (_lastTarget = new Entity(GetMember("LastTarget"))); }
}
private Entity _target;
/// <summary>
/// This member returns the last target upon which the module was activated.
/// </summary>
public Entity Target
{
get { return _target ?? (_target = new Entity(GetMember("Target"))); }
}
private Int64? _targetId;
/// <summary>
/// Wrapper for the TargetID member of a module object.
/// </summary>
public Int64 TargetID
{
get
{
Tracing.SendCallback("TargetID");
if (_targetId == null)
_targetId = this.GetInt64("TargetID");
return _targetId.Value;
}
}
#region Activatable
private bool? _isActive;
/// <summary>
/// TRUE when the module is active, including when the module is
/// flashing red in cooldown mode after being deactivated.
/// Note: Require Module.IsActivatable == TRUE
/// </summary>
public bool IsActive
{
get
{
if (_isActive == null)
_isActive = this.GetBool("IsActive");
return _isActive.Value;
}
}
private bool? _isOffensive;
/// <summary>
/// Note: Require Module.IsActivatable == TRUE
/// </summary>
public bool IsOffensive
{
get
{
if (_isOffensive == null)
_isOffensive = this.GetBool("IsOffensive");
return _isOffensive.Value;
}
}
private bool? _isAssistance;
/// <summary>
/// Note: Require Module.IsActivatable == TRUE
/// </summary>
public bool IsAssistance
{
get
{
if (_isAssistance == null)
_isAssistance = this.GetBool("IsAssistance");
return _isAssistance.Value;
}
}
private int? _effectCategory;
/// <summary>
/// Note: Require Module.IsActivatable == TRUE
/// </summary>
public int EffectCategory
{
get
{
if (_effectCategory == null)
_effectCategory = this.GetInt("EffectCategory");
return _effectCategory.Value;
}
}
#endregion
#region Charges
private ModuleCharge _charge;
/// <summary>
/// The charge type loaded into this module.
/// </summary>
public ModuleCharge Charge
{
get { return _charge ?? (_charge = new ModuleCharge(GetMember("Charge"))); }
}
private int? _currentCharges;
/// <summary>
/// Requires this.Charge.IsValid == true
/// </summary>
public int CurrentCharges
{
get
{
if (_currentCharges == null)
_currentCharges = this.GetInt("CurrentCharges");
return _currentCharges.Value;
}
}
private int? _maxCharges;
/// <summary>
/// Requires this.Charge.IsValid == true
/// </summary>
public int MaxCharges
{
get
{
if (_maxCharges == null)
_maxCharges = this.GetInt("MaxCharges");
return _maxCharges.Value;
}
}
#endregion
#region Properties
/// <summary>
/// Wrapper for the PowergridUsage member of a module object.
/// </summary>
public double? PowergridUsage
{
get { return this.GetNullableDouble("PowergridUsage"); }
}
/// <summary>
/// Wrapper for the OptimalRange member of a module object.
/// </summary>
public double? OptimalRange
{
get { return this.GetNullableDouble("OptimalRange"); }
}
/// <summary>
/// Wrapper for the TechLevel member of a module object.
/// </summary>
public double? TechLevel
{
get { return this.GetNullableDouble("TechLevel"); }
}
/// <summary>
/// Wrapper for the ActivationCost member of a module object.
/// </summary>
public double? ActivationCost
{
get { return this.GetNullableDouble("ActivationCost"); }
}
/// <summary>
/// Hitpoints
/// </summary>
public double? HP
{
get { return this.GetNullableDouble("HP"); }
}
/// <summary>
/// Hit points damage.
/// </summary>
public double? Damage
{
get { return this.GetNullableDouble("Damage"); }
}
/// <summary>
/// Wrapper for the ActivationTime member of a module object.
/// </summary>
public double? ActivationTime
{
get { return this.GetNullableDouble("ActivationTime"); }
}
/// <summary>
/// Alias for ActivationTime.
/// </summary>
public double? Duration
{
get { return this.GetNullableDouble("Duration"); }
}
/// <summary>
/// Wrapper for the Volume member of a module object.
/// </summary>
public double? Volume
{
get { return this.GetNullableDouble("Volume"); }
}
/// <summary>
/// Wrapper for the AccessDifficultyBonus member of a module object.
/// </summary>
public double? AccessDifficultyBonus
{
get { return this.GetNullableDouble("AccessDifficultyBonus"); }
}
/// <summary>
/// Wrapper for the CPUUsage member of a module object.
/// </summary>
public double? CPUUsage
{
get { return this.GetNullableDouble("CPUUsage"); }
}
/// <summary>
/// Wrapper for the Capacity member of a module object.
/// </summary>
public double? Capacity
{
get { return this.GetNullableDouble("Capacity"); }
}
/// <summary>
/// Wrapper for the MaxTractorVelocity member of a module object.
/// </summary>
public double? MaxTractorVelocity
{
get { return this.GetNullableDouble("MaxTractorVelocity"); }
}
/// <summary>
/// Wrapper for the Mass member of a module object.
/// </summary>
public double? Mass
{
get { return this.GetNullableDouble("Mass"); }
}
/// <summary>
/// Wrapper for the OverloadSpeedFactorBonus member of a module object.
/// </summary>
public double? OverloadSpeedFactorBonus
{
get { return this.GetNullableDouble("OverloadSpeedFactorBonus"); }
}
/// <summary>
/// Wrapper for the MassAddition member of a module object.
/// </summary>
public double? MassAddition
{
get
{
return this.GetNullableDouble("MassAddition");
}
}
/// <summary>
/// Wrapper for the HeatDamage member of a module object.
/// </summary>
public double? HeatDamage
{
get { return this.GetNullableDouble("HeatDamage"); }
}
/// <summary>
/// Wrapper for the Thrust member of a module object.
/// </summary>
public double? Thrust
{
get { return this.GetNullableDouble("Thrust"); }
}
/// <summary>
/// Wrapper for the MaxVelocityBonus member of a module object.
/// </summary>
public double? MaxVelocityBonus
{
get { return this.GetNullableDouble("MaxVelocityBonus"); }
}
/// <summary>
/// Wrapper for the MaxVelocityPenalty member of a module object.
/// </summary>
public double? MaxVelocityPenalty
{
get { return this.GetNullableDouble("MaxVelocityPenalty"); }
}
/// <summary>
/// Wrapper for the StructureHPBonus member of a module object.
/// </summary>
public double? StructureHPBonus
{
get { return this.GetNullableDouble("StructureHPBonus"); }
}
/// <summary>
/// Wrapper for the CargoCapacityBonus member of a module object.
/// </summary>
public double? CargoCapacityBonus
{
get { return this.GetNullableDouble("CargoCapacityBonus"); }
}
/// <summary>
/// Wrapper for the ShieldBonus member of a module object.
/// </summary>
public double? ShieldBonus
{
get { return this.GetNullableDouble("ShieldBonus"); }
}
/// <summary>
/// Wrapper for the ShieldBoostBonus member of a module object.
/// </summary>
public double? ShieldBoostBonus
{
get { return this.GetNullableDouble("ShieldBoostBonus"); }
}
/// <summary>
/// Wrapper for the CapacitorRechargeRateBonus member of a module object.
/// </summary>
public double? CapacitorRechargeRateBonus
{
get { return this.GetNullableDouble("CapacitorRechargeRateBonus"); }
}
/// <summary>
/// Wrapper for the ShieldRechargeRateBonus member of a module object.
/// </summary>
public double? ShieldRechargeRateBonus
{
get { return this.GetNullableDouble("ShieldRechargeRateBonus"); }
}
/// <summary>
/// Wrapper for the CapacitorBonus member of a module object.
/// </summary>
public double? CapacitorBonus
{
get { return this.GetNullableDouble("CapacitorBonus"); }
}
/// <summary>
/// Wrapper for the PowergridBonus member of a module object.
/// </summary>
public double? PowergridBonus
{
get { return this.GetNullableDouble("PowergridBonus"); }
}
/// <summary>
/// Wrapper for the ShieldHPBonus member of a module object.
/// </summary>
public double? ShieldHPBonus
{
get { return this.GetNullableDouble("ShieldHPBonus"); }
}
/// <summary>
/// Wrapper for the VelocityModifier member of a module object.
/// </summary>
public double? VelocityModifier
{
get { return this.GetNullableDouble("VelocityModifier"); }
}
/// <summary>
/// Wrapper for the ChargeRate member of a module object.
/// </summary>
public double? ChargeRate
{
get { return this.GetNullableDouble("ChargeRate"); }
}
/// <summary>
/// Wrapper for the RateOfFire member of a module object.
/// </summary>
public double? RateOfFire
{
get { return this.GetNullableDouble("RateOfFire"); }
}
/// <summary>
/// Wrapper for the OverloadRateOfFireBonus member of a module object.
/// </summary>
public double? OverloadRateOfFireBonus
{
get { return this.GetNullableDouble("OverloadRateOfFireBonus"); }
}
/// <summary>
/// Wrapper for the MiningAmount member of a module object.
/// </summary>
public double? MiningAmount
{
get { return this.GetNullableDouble("MiningAmount"); }
}
/// <summary>
/// Wrapper for the CrystalsDamage member of a module object.
/// </summary>
public double? CrystalsDamage
{
get { return this.GetNullableDouble("CrystalsDamage"); }
}
/// <summary>
/// Wrapper for the TargetGroup member of a module object.
/// </summary>
public int? TargetGroup
{
get { return this.GetNullableInt("TargetGroup"); }
}
/// <summary>
/// Wrapper for the SurveyScanRange member of a module object.
/// </summary>
public double? SurveyScanRange
{
get { return this.GetNullableDouble("SurveyScanRange"); }
}
/// <summary>
/// Wrapper for the CPUOutputBonus member of a module object.
/// </summary>
public double? CPUOutputBonus
{
get { return this.GetNullableDouble("CPUOutputBonus"); }
}
/// <summary>
/// This rounds to the nearest thousandth.
/// </summary>
public double? TrackingSpeed
{
get { return this.GetNullableDouble("TrackingSpeed"); }
}
/// <summary>
/// Wrapper for the DamageModifier member of a module object.
/// </summary>
public double? DamageModifier
{
get { return this.GetNullableDouble("DamageModifier"); }
}
/// <summary>
/// Wrapper for the EMDamage member of a module object.
/// </summary>
public double? EMDamage
{
get { return this.GetNullableDouble("EMDamage"); }
}
/// <summary>
/// Wrapper for the KineticDamage member of a module object.
/// </summary>
public double? KineticDamage
{
get { return this.GetNullableDouble("KineticDamage"); }
}
/// <summary>
/// Wrapper for the ThermalDamage member of a module object.
/// </summary>
public double? ThermalDamage
{
get { return this.GetNullableDouble("ThermalDamage"); }
}
/// <summary>
/// Wrapper for the ExplosiveDamage member of a module object.
/// </summary>
public double? ExplosiveDamage
{
get { return this.GetNullableDouble("ExplosiveDamage"); }
}
/// <summary>
/// Wrapper for the ChargeSize member of a module object.
/// </summary>
public double? ChargeSize
{
get { return this.GetNullableDouble("ChargeSize"); }
}
/// <summary>
/// Wrapper for the AccuracyFalloff member of a module object.
/// </summary>
public double? AccuracyFalloff
{
get { return this.GetNullableDouble("AccuracyFalloff"); }
}
/// <summary>
/// Wrapper for the SignatureResolution member of a module object.
/// </summary>
public double? SignatureResolution
{
get { return this.GetNullableDouble("SignatureResolution"); }
}
/// <summary>
/// Wrapper for the OverloadOptimalRangeBonus member of a module object.
/// </summary>
public double? OverloadOptimalRangeBonus
{
get { return this.GetNullableDouble("OverloadOptimalRangeBonus"); }
}
/// <summary>
/// Wrapper for the OverloadRepairBonus member of a module object.
/// </summary>
public double? OverloadRepairBonus
{
get { return this.GetDouble("OverloadRepairBonus"); }
}
/// <summary>
/// Wrapper for the OverloadDurationBonus member of a module object.
/// </summary>
public double? OverloadDurationBonus
{
get { return this.GetDouble("OverloadDurationBonus"); }
}
/// <summary>
/// Wrapper for the ArmorHPRepaired member of a module object.
/// </summary>
public double? ArmorHPRepaired
{
get { return this.GetNullableDouble("ArmorHPRepaired"); }
}
/// <summary>
/// Wrapper for the ExplosiveDmgResistanceBonus member of a module object.
/// </summary>
public double? ExplosiveDmgResistanceBonus
{
get { return this.GetNullableDouble("ExplosiveDmgResistanceBonus"); }
}
/// <summary>
/// Wrapper for the KineticDmgResistanceBonus member of a module object.
/// </summary>
public double? KineticDmgResistanceBonus
{
get { return this.GetNullableDouble("KineticDmgResistanceBonus"); }
}
/// <summary>
/// Wrapper for the ThermalDmgResistanceBonus member of a module object.
/// </summary>
public double? ThermalDmgResistanceBonus
{
get { return this.GetNullableDouble("ThermalDmgResistanceBonus"); }
}
/// <summary>
/// Wrapper for the EMDmgResistanceBonus member of a module object.
/// </summary>
public double? EMDmgResistanceBonus
{
get { return this.GetNullableDouble("EMDmgResistanceBonus"); }
}
/// <summary>
/// Wrapper for the ArmorHPBonus member of a module object.
/// </summary>
public double? ArmorHPBonus
{
get { return this.GetNullableDouble("ArmorHPBonus"); }
}
/// <summary>
/// Wrapper for the RateOfFireBonus member of a module object.
/// </summary>
public double? RateOfFireBonus
{
get { return this.GetNullableDouble("RateOfFireBonus"); }
}
/// <summary>
/// Wrapper for the MiningAmountBonus member of a module object.
/// </summary>
public double? MiningAmountBonus
{
get { return this.GetNullableDouble("MiningAmountBonus"); }
}
/// <summary>
/// Wrapper for the CPUPenaltyPercent member of a module object.
/// </summary>
public double? CPUPenaltyPercent
{
get { return this.GetNullableDouble("CPUPenaltyPercent"); }
}
/// <summary>
/// Wrapper for the WarpScrambleStrength member of a module object.
/// </summary>
public double? WarpScrambleStrength
{
get { return this.GetNullableDouble("WarpScrambleStrength"); }
}
/// <summary>
/// Wrapper for Module.EnergyTransferAmount
/// </summary>
public double? EnergyTransferAmount
{
get { return this.GetNullableDouble("EnergyTransferAmount"); }
}
/// <summary>
/// Wrapper for Module.TransferRange
/// </summary>
public double? TransferRange
{
get { return this.GetNullableDouble("TransferRange"); }
}
/// <summary>
/// Wrapper for Module.MaxNeutralizationRange
/// </summary>
public double? MaxNeutralizationRange
{
get { return this.GetNullableDouble("MaxNeutralizationRange"); }
}
/// <summary>
/// Wrapper for Module.MaxNeutralizationRange
/// </summary>
public double? EnergyNeutralized
{
get { return this.GetNullableDouble("EnergyNeutralized"); }
}
#endregion
#endregion
#region Methods
/// <summary>
/// Wrapper for the Click method of a module object
/// </summary>
/// <returns></returns>
public bool Click()
{
Tracing.SendCallback("Module.Click");
return ExecuteMethod("Click");
}
/// <summary>
/// Wrapper for the Activate method of a module object
/// </summary>
/// <returns></returns>
public bool Activate()
{
Tracing.SendCallback("Module.Activate");
return ExecuteMethod("Activate");
}
/// <summary>
/// Wrapper for the Activate method of a module object
/// </summary>
/// <returns></returns>
public bool Activate(Int64 EntityID)
{
Tracing.SendCallback("Module.Activate", EntityID.ToString(CultureInfo.CurrentCulture));
return ExecuteMethod("Activate", EntityID.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Wrapper for the Activate method of a module object
/// </summary>
/// <returns></returns>
public bool Deactivate()
{
Tracing.SendCallback("Module.Deactivate", string.Empty);
return ExecuteMethod("Deactivate");
}
/// <summary>
/// Parameter is the Item.ID of an ammunition from your ship's cargo
/// NOTE: This method will replace your current ammo with the ammo given
/// in the same quantity
/// </summary>
public bool ChangeAmmo(Int64 AmmoID)
{
Tracing.SendCallback("Module.ChangeAmmo", AmmoID.ToString(CultureInfo.CurrentCulture));
return ExecuteMethod("ChangeAmmo", AmmoID.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Parameter is the Item.ID of an ammunition from your ship's cargo
/// NOTE: be careful, if you use a quantity that is too high for the module,
/// it'll fail entirely. See Module.MaxCharges
/// </summary>
public bool ChangeAmmo(Int64 AmmoID, int Quantity)
{
Tracing.SendCallback("Module.ChangeAmmo", AmmoID, Quantity);
return ExecuteMethod("ChangeAmmo", AmmoID.ToString(CultureInfo.CurrentCulture), Quantity.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Wrapper for the SetAutoReloadOn method of a module object
/// </summary>
/// <returns></returns>
public bool SetAutoReloadOn()
{
Tracing.SendCallback("Module.SetAutoReloadOn");
return ExecuteMethod("SetAutoReloadOn");
}
/// <summary>
/// Wrapper for the SetAutoReloadOff method of a module object
/// </summary>
/// <returns></returns>
public bool SetAutoReloadOff()
{
Tracing.SendCallback("Module.SetAutoReloadOff");
return ExecuteMethod("SetAutoReloadOff");
}
/// <summary>
/// Wrapper for the PutOnline method of a module object
/// </summary>
/// <returns></returns>
public bool PutOnline()
{
Tracing.SendCallback("Module.PutOnline");
return ExecuteMethod("PutOnline");
}
/// <summary>
/// Wrapper for the PutOffline method of a module object
/// </summary>
/// <returns></returns>
public bool PutOffline()
{
Tracing.SendCallback("Module.PutOffline");
return ExecuteMethod("PutOffline");
}