forked from isxGames/ISXEVEWrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ship.cs
941 lines (859 loc) · 21.2 KB
/
Ship.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
using System;
using System.Collections.Generic;
using System.Globalization;
using EVE.ISXEVE.Extensions;
using EVE.ISXEVE.Interfaces;
using LavishScriptAPI;
namespace EVE.ISXEVE
{
/// <summary>
/// Wrapper for the ship data type.
/// </summary>
public class Ship : LavishScriptObject, IShip
{
#region Constructors
/// <summary>
/// Ship copy constructor.
/// </summary>
/// <param name="Obj"></param>
public Ship(LavishScriptObject Obj)
: base(Obj)
{
}
/// <summary>
/// Ship constructor.
/// </summary>
public Ship()
: base(LavishScript.Objects.GetObject("MyShip"))
{
}
#endregion
#region Members
#region ShipStats
private Int64? _id;
/// <summary>
/// Wrapper for the ID member of this ship type. This is the same as our Entity ID.
/// </summary>
public Int64 ID
{
get
{
if (_id == null)
_id = this.GetInt64("ID");
return _id.Value;
}
}
private string _name;
/// <summary>
/// Wrapper for the Name member of the ship type.
/// </summary>
public string Name
{
get { return _name ?? (_name = this.GetString("Name")); }
}
private double? _capacitor;
/// <summary>
/// Wrapper for the Capacitor member of the ship type.
/// </summary>
public double Capacitor
{
get
{
if (_capacitor == null)
_capacitor = this.GetDouble("Capacitor");
return _capacitor.Value;
}
}
private double? _maxCapacitor;
/// one sec<summary>
/// Wrapper for the MaxCapacitor member of the ship type.
/// </summary>
public double MaxCapacitor
{
get
{
if (_maxCapacitor == null)
_maxCapacitor = this.GetDouble("MaxCapacitor");
return _maxCapacitor.Value;
}
}
private double? _capacitorPct;
/// <summary>
/// Wrapper for the CapacitorPct member of the ship type.
/// </summary>
public double CapacitorPct
{
get
{
if (_capacitorPct == null)
_capacitorPct = this.GetDouble("CapacitorPct");
return _capacitorPct.Value;
}
}
private double? _shield;
/// <summary>
/// Wrapper for the Shield member of the ship type.
/// </summary>
public double Shield
{
get
{
if (_shield == null)
_shield = this.GetDouble("Shield");
return _shield.Value;
}
}
private double? _maxShield;
/// <summary>
/// Wrapper for the MaxShield member of the ship type.
/// </summary>
public double MaxShield
{
get
{
if (_maxShield == null)
_maxShield = this.GetDouble("MaxShield");
return _maxShield.Value;
}
}
private double? _shieldPct;
/// <summary>
/// Wrapper for the ShieldPct member of the ship type.
/// </summary>
public double ShieldPct
{
get
{
if (_shieldPct == null)
_shieldPct = this.GetDouble("ShieldPct");
return _shieldPct.Value;
}
}
private double? _armor;
/// <summary>
/// Wrapper for the Armor member of the ship type.
/// </summary>
public double Armor
{
get
{
if (_armor == null)
_armor = this.GetDouble("Armor");
return _armor.Value;
}
}
private double? _maxArmor;
/// <summary>
/// Wrapper for the MaxArmor member of the ship type.
/// </summary>
public double MaxArmor
{
get
{
if (_maxArmor == null)
_maxArmor = this.GetDouble("MaxArmor");
return _maxArmor.Value;
}
}
private double? _armorPct;
/// <summary>
/// Wrapper for the ArmorPct member of the ship type.
/// </summary>
public double ArmorPct
{
get
{
if (_armorPct == null)
_armorPct = this.GetDouble("ArmorPct");
return _armorPct.Value;
}
}
private double? _structure;
/// <summary>
/// Wrapper for the Structure member of the ship type.
/// </summary>
public double Structure
{
get
{
if (_structure == null)
_structure = this.GetDouble("Structure");
return _structure.Value;
}
}
private double? _maxStructure;
/// <summary>
/// Wrapper for the MaxStructure member of the ship type.
/// </summary>
public double MaxStructure
{
get
{
if (_maxStructure == null)
_maxStructure = this.GetDouble("MaxStructure");
return _maxStructure.Value;
}
}
private double? _structurePct;
/// <summary>
/// Wrapper for the StructurePct member of the ship type.
/// </summary>
public double StructurePct
{
get
{
if (_structurePct == null)
_structurePct = this.GetDouble("StructurePct");
return _structurePct.Value;
}
}
private IItem _toItem;
/// <summary>
/// Wrapper for the Ship.ToItem member
/// </summary>
public IItem ToItem
{
get { return _toItem ?? (_toItem = new Item(GetMember("ToItem"))); }
}
private double? _cpuLoad;
/// <summary>
/// Wrapper for the CPULoad member of the ship type.
/// </summary>
public double CPULoad
{
get
{
if (_cpuLoad == null)
_cpuLoad = this.GetDouble("CPULoad");
return _cpuLoad.Value;
}
}
private double? _cpuOutput;
/// <summary>
/// Wrapper for the CPUOutput member of the ship type.
/// </summary>
public double CPUOutput
{
get
{
if (_cpuOutput == null)
_cpuOutput = this.GetDouble("CPUOutput");
return _cpuOutput.Value;
}
}
private double? _powerLoad;
/// <summary>
/// Wrapper for the PowerLoad member of the ship type.
/// </summary>
public double PowerLoad
{
get
{
if (_powerLoad == null)
_powerLoad = this.GetDouble("PowerLoad");
return _powerLoad.Value;
}
}
private double? _powerOutput;
/// <summary>
/// Wrapper for the PowerOutput member of the ship type.
/// </summary>
public double PowerOutput
{
get
{
if (_powerOutput == null)
_powerOutput = this.GetDouble("PowerOutput");
return _powerOutput.Value;
}
}
private double? _turretSlotsLeft;
/// <summary>
/// Wrapper for the TurretSlotsLeft member of the ship type.
/// </summary>
public double TurretSlotsLeft
{
get
{
if (_turretSlotsLeft == null)
_turretSlotsLeft = this.GetDouble("TurretSlotsLeft");
return _turretSlotsLeft.Value;
}
}
private double? _heatCapacityHigh;
/// <summary>
/// Wrapper for the HeatCapacityHigh member of the ship type.
/// </summary>
public double HeatCapacityHigh
{
get
{
if (_heatCapacityHigh == null)
_heatCapacityHigh = this.GetDouble("HeatCapacityHigh");
return _heatCapacityHigh.Value;
}
}
private double? _heatCapacityMedium;
/// <summary>
/// Wrapper for the HeatCapacityMedium member of the ship type.
/// </summary>
public double HeatCapacityMedium
{
get
{
if (_heatCapacityMedium == null)
_heatCapacityMedium = this.GetDouble("HeatCapacityMedium");
return _heatCapacityMedium.Value;
}
}
private double? _heatCapacityLow;
/// <summary>
/// Wrapper for the HeatCapacityLow member of the ship type.
/// </summary>
public double HeatCapacityLow
{
get
{
if (_heatCapacityLow == null)
_heatCapacityLow = this.GetDouble("HeatCapacityLow");
return _heatCapacityLow.Value;
}
}
private double? _rigSlots;
/// <summary>
/// Wrapper for the RigSlots member of the ship type.
/// </summary>
public double RigSlots
{
get
{
if (_rigSlots == null)
_rigSlots = this.GetDouble("RigSlots");
return _rigSlots.Value;
}
}
private double? _rigSlotsLeft;
/// <summary>
/// Wrapper for the RigSlotsLeft member of the ship type.
/// </summary>
public double RigSlotsLeft
{
get
{
if (_rigSlotsLeft == null)
_rigSlotsLeft = this.GetDouble("RigSlotsLeft");
return _rigSlotsLeft.Value;
}
}
private double? _scanSpeed;
/// <summary>
/// Wrapper for the ScanSpeed member of the ship type.
/// </summary>
public double ScanSpeed
{
get
{
if (_scanSpeed == null)
_scanSpeed = this.GetDouble("ScanSpeed");
return _scanSpeed.Value;
}
}
private double? _maxTargetRange;
/// <summary>
/// Wrapper for the MaxTargetRange member of the ship type.
/// </summary>
public double MaxTargetRange
{
get
{
if (_maxTargetRange == null)
_maxTargetRange = this.GetDouble("MaxTargetRange");
return _maxTargetRange.Value;
}
}
private double? _lowSlots;
/// <summary>
/// Wrapper for the LowSlots member of the ship type.
/// </summary>
public double LowSlots
{
get
{
if (_lowSlots == null)
_lowSlots = this.GetDouble("LowSlots");
return _lowSlots.Value;
}
}
private double? _mediumSlots;
/// <summary>
/// Wrapper for the MediumSlots member of the ship type.
/// </summary>
public double MediumSlots
{
get
{
if (_mediumSlots == null)
_mediumSlots = this.GetDouble("MediumSlots");
return _mediumSlots.Value;
}
}
private double? _highSlots;
/// <summary>
/// Wrapper for the HighSlots member of the ship type.
/// </summary>
public double HighSlots
{
get
{
if (_highSlots == null)
_highSlots = this.GetDouble("HighSlots");
return _highSlots.Value;
}
}
private double? _radius;
/// <summary>
/// Wrapper for the Radius member of the ship type.
/// </summary>
public double Radius
{
get
{
if (_radius == null)
_radius = this.GetDouble("Radius");
return _radius.Value;
}
}
private double? _techLevel;
/// <summary>
/// Wrapper for the TechLevel member of the ship type.
/// </summary>
public double TechLevel
{
get
{
if (_techLevel == null)
_techLevel = this.GetDouble("TechLevel");
return _techLevel.Value;
}
}
private double? _heatLow;
/// <summary>
/// Wrapper for the HeatLow member of the ship type.
/// </summary>
public double HeatLow
{
get
{
if (_heatLow == null)
_heatLow = this.GetDouble("HeatLow");
return _heatLow.Value;
}
}
private double? _heatMedium;
/// <summary>
/// Wrapper for the HeatMedium member of the ship type.
/// </summary>
public double HeatMedium
{
get
{
if (_heatMedium == null)
_heatMedium = this.GetDouble("HeatMedium");
return _heatMedium.Value;
}
}
private double? _heatHigh;
/// <summary>
/// Wrapper for the HeatHigh member of the ship type.
/// </summary>
public double HeatHigh
{
get
{
if (_heatHigh == null)
_heatHigh = this.GetDouble("HeatHigh");
return _heatHigh.Value;
}
}
private double? _maxVelocity;
/// <summary>
/// Wrapper for the MaxVelocity member of the ship type.
/// </summary>
public double MaxVelocity
{
get
{
if (_maxVelocity == null)
_maxVelocity = this.GetDouble("MaxVelocity");
return _maxVelocity.Value;
}
}
private double? _scanResolution;
/// <summary>
/// Wrapper for the ScanResolution member of the ship type.
/// </summary>
public double ScanResolution
{
get
{
if (_scanResolution == null)
_scanResolution = this.GetDouble("ScanResolution");
return _scanResolution.Value;
}
}
private double? _scanRadarStrength;
/// <summary>
/// Wrapper for the ScanRadarStrength member of the ship type.
/// </summary>
public double ScanRadarStrength
{
get
{
if (_scanRadarStrength == null)
_scanRadarStrength = this.GetDouble("ScanRadarStrength");
return _scanRadarStrength.Value;
}
}
private double? _agility;
/// <summary>
/// Wrapper for the Agility member of the ship type.
/// </summary>
public double Agility
{
get
{
if (_agility == null)
_agility = this.GetDouble("Agility");
return _agility.Value;
}
}
private double? _launcherSlotsLeft;
/// <summary>
/// Wrapper for the LauncherSlotsLeft member of the ship type.
/// </summary>
public double LauncherSlotsLeft
{
get
{
if (_launcherSlotsLeft == null)
_launcherSlotsLeft = this.GetDouble("LauncherSlotsLeft");
return _launcherSlotsLeft.Value;
}
}
private double? _capacitorRechargeRate;
/// <summary>
/// Wrapper for the CapacitorRechargeRate member of the ship type.
/// </summary>
public double CapacitorRechargeRate
{
get
{
if (_capacitorRechargeRate == null)
_capacitorRechargeRate = this.GetDouble("CapacitorRechargeRate");
return _capacitorRechargeRate.Value;
}
}
private double? _shieldRechargeRate;
/// <summary>
/// Wrapper for the ShieldRechargeRate member of the ship type.
/// </summary>
public double ShieldRechargeRate
{
get
{
if (_shieldRechargeRate == null)
_shieldRechargeRate = this.GetDouble("ShieldRechargeRate");
return _shieldRechargeRate.Value;
}
}
private double? _signatureRadius;
/// <summary>
/// Wrapper for the SignatureRadius member of the ship type.
/// </summary>
public double SignatureRadius
{
get
{
if (_signatureRadius == null)
_signatureRadius = this.GetDouble("SignatureRadius");
return _signatureRadius.Value;
}
}
private double? _maxLockedTargets;
/// <summary>
/// See also the 'MaxLockedTargets' member of the character datatype for the character's restrictions on locked targets.
/// </summary>
public double MaxLockedTargets
{
get
{
if (_maxLockedTargets == null)
_maxLockedTargets = this.GetDouble("MaxLockedTargets");
return _maxLockedTargets.Value;
}
}
#endregion
#region Cargo
private double? _cargoCapacity;
/// <summary>
/// Wrapper for the CargoCapacity member of the ship type.
/// </summary>
public double CargoCapacity
{
get
{
if (_cargoCapacity == null)
_cargoCapacity = this.GetDouble("CargoCapacity");
return _cargoCapacity.Value;
}
}
private double? _usedCargoCapacity;
/// <summary>
/// Wrapper for the UsedCargoCapacity member of the ship type.
/// </summary>
public double UsedCargoCapacity
{
get
{
if (_usedCargoCapacity == null)
_usedCargoCapacity = this.GetDouble("UsedCargoCapacity");
return _usedCargoCapacity.Value;
}
}
/// <summary>
/// Wrapper for the Cargo member of the ship type.
/// </summary>
/// <param name="i"></param>
/// <returns></returns>
public IItem Cargo(int i)
{
return new Item(GetMember("Cargo", i.ToString(CultureInfo.CurrentCulture)));
}
/// <summary>
/// Wrapper for the Cargo member of the ship type.
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public IItem Cargo(string name)
{
return new Item(GetMember("Cargo", name));
}
private List<IItem> _cargo;
/// <summary>
/// Wrapper for the GetCargo member of the ship type.
/// </summary>
/// <returns></returns>
public List<IItem> GetCargo()
{
Tracing.SendCallback("Ship.GetCargo");
return _cargo ?? (_cargo = Util.GetListFromMethod<IItem>(this, "GetCargo", "item"));
}
private bool? _hasOreHold;
/// <summary>
/// Wrapper for the HasOreHold member of the ship type.
/// </summary>
public bool HasOreHold
{
get
{
if (_hasOreHold == null)
_hasOreHold = this.GetBool("HasOreHold");
return _hasOreHold.Value;
}
}
private List<IItem> _oreHoldCargo;
/// <summary>
/// Wrapper for the GetOreHoldCargo method of the ship type
/// </summary>
/// <returns></returns>
public List<IItem> GetOreHoldCargo()
{
return _oreHoldCargo ?? (_oreHoldCargo = Util.GetListFromMethod<IItem>(this, "GetOreHoldCargo", "item"));
}
#endregion
#region Drone
private double? _droneBayCapacity;
/// <summary>
/// Wrapper for the DronebayCapacity member of the ship type.
/// </summary>
public double DronebayCapacity
{
get
{
if (_droneBayCapacity == null)
_droneBayCapacity = this.GetDouble("DronebayCapacity");
return _droneBayCapacity.Value;
}
}
private double? _usedDroneBayCapacity;
/// <summary>
/// Wrapper for the UsedDronebayCapacity member of the ship type.
/// </summary>
public double UsedDronebayCapacity
{
get
{
if (_usedDroneBayCapacity == null)
_usedDroneBayCapacity = this.GetDouble("UsedDronebayCapacity");
return _usedDroneBayCapacity.Value;
}
}
/// <summary>
/// Wrapper for the Drone member of the ship type.
/// </summary>
/// <param name="i"></param>
/// <returns></returns>
public IItem Drone(int i)
{
return new Item(GetMember("Drone", i.ToString(CultureInfo.CurrentCulture)));
}
/// <summary>
/// Wrapper for the Drone member of the ship type.
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public IItem Drone(string name)
{
return new Item(GetMember("Drone", name));
}
private List<IItem> _drones;
/// <summary>
/// Wrapper for the GetDrones member of the ship type.
/// </summary>
/// <returns></returns>
public List<IItem> GetDrones()
{
Tracing.SendCallback("Ship.GetDrones", string.Empty);
return _drones ?? (_drones = Util.GetListFromMethod<IItem>(this, "GetDrones", "item"));
}
#endregion
#region Space
/// <summary>
/// Retrieve a module based on its slot
/// Note: Must be in space.
/// </summary>
public IModule Module(SlotType slottype, int number)
{
if (number < 0 || number > 7)
throw new Exception("Slot number must be between 0 and 7, inclusive");
return new Module(GetMember("Module", slottype.ToString() + number.ToString(CultureInfo.CurrentCulture)));
}
/// <summary>
/// Wrapper for the Module member of the ship type.
/// </summary>
/// <param name="slotname"></param>
/// <returns></returns>
public IModule Module(string slotname)
{
return new Module(GetMember("Module", slotname));
}
/// <summary>
/// Retreive a module item based on its slot. Usable both
/// in station and in space.
/// </summary>
public IItem ModuleItem(SlotType slottype, int number)
{
return Module(slottype, number).ToItem;
}
/// <summary>
/// Wrapper for the ModuleItem member of the ship type.
/// </summary>
/// <param name="slotname"></param>
/// <returns></returns>
public IItem ModuleItem(string slotname)
{
return Module(slotname).ToItem;
}
private List<IModule> _modules;
/// <summary>
/// Modules fit to the ship
/// Note: Must be in space.
/// </summary>
public List<IModule> GetModules()
{
Tracing.SendCallback("Ship.GetModules");
return _modules ?? (_modules = Util.GetListFromMethod<IModule>(this, "GetModules", "module"));
}
#endregion
private Scanners _scanners;
/// <summary>
/// Wraps the Scanners member of the Ship datatype.
/// </summary>
public Scanners Scanners
{
get { return _scanners ?? (_scanners = new Scanners(GetMember("Scanners"))); }
}
#endregion
#region LavishScript Methods
/// <summary>
/// Wrapper for the StackAllCargo method of the ship type.
/// </summary>
/// <returns></returns>
public bool StackAllCargo()
{
// TODO - Remove this when stealthbot is updated.
Tracing.SendCallback("Ship.StackAllCargo - Redirecting to EVEWindow");
var wnd = new EVEWindow(LavishScript.Objects.GetObject("EVEWindow", "ByName", ID.ToString(CultureInfo.CurrentCulture)));
return wnd.StackAll();
}
/// <summary>
/// To utilize the drone methods properly, your drones must be UNSTACKED in
/// your drone bay. To do this, you can either SHIFT-DRAG the drones to your
/// drone bay and select a quantity of 1, or you can go in space, launch all
/// your drones, and then recall them to your drone bay. When drones return
/// to your drone bay, they always go back 'unstacked'.
/// </summary>
public bool LaunchAllDrones()
{
Tracing.SendCallback("Ship.LaunchAllDrones");
return ExecuteMethod("LaunchAllDrones");
}
/// <summary>
/// Wrapper for the Open method of the ship type.
/// </summary>
/// <returns></returns>
public bool Open()
{
Tracing.SendCallback("Ship.Open");
return ExecuteMethod("Open");
}
public bool StripFitting()
{
return ExecuteMethod("StripFitting");
}
/// <summary>
/// Initiate the self-destruct process.
/// Note: This spawns a modal window you will need to confirm.
/// </summary>
/// <returns></returns>
public bool SelfDestruct()
{
return ExecuteMethod("SelfDestruct");
}
public bool SetStarbaseForcefieldPassword(string password)
{
return ExecuteMethod("SetStarbaseForcefieldPassword", password);
}
#endregion
}
public class MyShip : Ship
{
#region Constructors
/// <summary>
/// Ship copy constructor.
/// </summary>
/// <param name="Obj"></param>
public MyShip(LavishScriptObject Obj)
: base(Obj)
{
}
/// <summary>
/// Ship constructor.
/// </summary>
public MyShip()
: base(LavishScript.Objects.GetObject("MyShip"))
{
}
#endregion
}
}