-
Notifications
You must be signed in to change notification settings - Fork 14
/
Character.cs
764 lines (690 loc) · 22.2 KB
/
Character.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
using System;
using System.Collections.Generic;
using System.Globalization;
using EVE.ISXEVE.Extensions;
using EVE.ISXEVE.Enums;
using InnerSpaceAPI;
using LavishScriptAPI;
namespace EVE.ISXEVE
{
/// <summary>
/// Wrapper for the character type.
/// </summary>
public class Character : Pilot
{
#region Constructors
/// <summary>
/// Character copy constructor.
/// </summary>
/// <param name="Obj"></param>
public Character(LavishScriptObject Obj)
: base(Obj)
{
}
/// <summary>
/// Character constructor. Returns object.
/// </summary>
public Character()
: base(LavishScript.Objects.GetObject("Me"))
{
}
#endregion
#region LavishScript Members
private Ship _ship;
/// <summary>
/// Wrapper for the Ship member of the character type.
/// </summary>
public Ship Ship
{
get
{
return _ship ?? (_ship = new Ship(GetMember("Ship")));
}
}
/// <summary>
/// Your current standing towards any CharID, CorporationID, or AllianceID. All 3 IDs are required. 0 or -1 are valid arguments for those without corporation or alliance.
/// </summary>
/// <param name="charID">CharID</param>
/// <param name="corpID">CorporationID</param>
/// <param name="allianceID">AllianceID</param>
/// <returns></returns>
public Standing StandingTo(Int64 charID, Int64 corpID, int allianceID)
{
return new Standing(GetMember("StandingTo", charID.ToString(CultureInfo.CurrentCulture), corpID.ToString(CultureInfo.CurrentCulture), allianceID.ToString(CultureInfo.CurrentCulture)));
}
private bool? _autoPilotOn;
/// <summary>
/// Wrapper for the AutoPilotOn member of the character type.
/// </summary>
public bool AutoPilotOn
{
get
{
if (_autoPilotOn == null)
_autoPilotOn = this.GetBool("AutoPilotOn");
return _autoPilotOn.Value;
}
}
private List<ActiveDrone> _activeDrones;
/// <summary>
/// Wrapper for the GetActiveDrones member of the character type.
/// </summary>
/// <returns></returns>
public List<ActiveDrone> GetActiveDrones()
{
Tracing.SendCallback("Character.GetActiveDrones");
return _activeDrones ?? (_activeDrones = Util.GetListFromMethod<ActiveDrone>(this, "GetActiveDrones", "activedrone"));
}
private List<long> _activeDroneIds;
/// <summary>
/// Wrapper for the GetActiveDroneIDs member of the character type.
/// </summary>
/// <returns></returns>
public List<long> GetActiveDroneIDs()
{
Tracing.SendCallback("Character.GetActiveDroneIDs");
return _activeDroneIds ?? (_activeDroneIds = Util.GetListFromMethod<long>(this, "GetActiveDroneIDs", "int64"));
}
#region SelfCorpLocation
private int? _regionId;
/// <summary>
/// Wrapper for the RegionID member of the character type.
/// </summary>
public int RegionID
{
get
{
if (_regionId == null)
_regionId = this.GetInt("RegionID");
return _regionId.Value;
}
}
private int? _constellationId;
/// <summary>
/// Wrapper for the ConstellationID member of the character type.
/// </summary>
public int ConstellationID
{
get
{
if (_constellationId == null)
_constellationId = this.GetInt("ConstellationID");
return _constellationId.Value;
}
}
private int? _solarSystemId;
/// <summary>
/// Wrapper for the SolarSystemID member of the character type.
/// </summary>
public int SolarSystemID
{
get
{
if (_solarSystemId == null)
_solarSystemId = this.GetInt("SolarSystemID");
return _solarSystemId.Value;
}
}
private Fleet _fleet;
/// <summary>
/// Wrapper for the Fleet member of the character type.
/// </summary>
public Fleet Fleet
{
get { return _fleet ?? (_fleet = new Fleet(GetMember("Fleet"))); }
}
private Int64? _shipId;
/// <summary>
/// Wrapper for the ShipID member of the character type.
/// </summary>
public Int64 ShipID
{
get
{
if (_shipId == null)
_shipId = this.GetInt64("ShipID");
return _shipId.Value;
}
}
private bool? _inStation;
/// <summary>
/// This does not change state until you are fully completed transitioning;
/// for example, if you are undocking, it is TRUE until you actually arrive in space.
/// </summary>
public bool InStation
{
get
{
if (_inStation == null)
_inStation = this.GetBool("InStation");
return _inStation.Value;
}
}
private bool? _inSpace;
/// <summary>
/// Wrapper for the InSpace member of the character type.
/// </summary>
public bool InSpace
{
get
{
if (_inSpace == null)
_inSpace = this.GetBool("InSpace");
return _inSpace.Value;
}
}
private long? _stationId;
/// <summary>
/// Wrapper for the StationID member of the character type.
/// </summary>
public long StationID
{
get
{
if (_stationId == null)
_stationId = this.GetInt64("StationID");
return _stationId.Value;
}
}
/// <summary>
/// Wrapper for the Intelligence member of the character type.
/// </summary>
public double Intelligence
{
get { return this.GetDouble("Intelligence"); }
}
/// <summary>
/// Wrapper for the Perception member of the character type.
/// </summary>
public double Perception
{
get { return this.GetDouble("Perception"); }
}
/// <summary>
/// Wrapper for the Charisma member of the character type.
/// </summary>
public double Charisma
{
get { return this.GetDouble("Charisma"); }
}
private Wallet _wallet;
public Wallet Wallet
{
get { return _wallet ?? (_wallet = new Wallet(GetMember("Wallet"))); }
}
/// <summary>
/// Wrapper for the Willpower member of the character type.
/// </summary>
public double Willpower
{
get { return this.GetDouble("Willpower"); }
}
/// <summary>
/// Wrapper for the Memory member of the character type.
/// </summary>
public double Memory
{
get { return this.GetDouble("Memory"); }
}
private double? _maxLockedTargets;
/// <summary>
/// See also the 'MaxLockedTargets' member of the ship datatype for
/// the ship restriction on locked targets
/// </summary>
public double MaxLockedTargets
{
get
{
if (_maxLockedTargets == null)
_maxLockedTargets = this.GetDouble("MaxLockedTargets");
return _maxLockedTargets.Value;
}
}
/// <summary>
/// Wrapper for the MiningDroneAmountBonus member of the character type.
/// </summary>
public double MiningDroneAmountBonus
{
get { return this.GetDouble("MiningDroneAmountBonus"); }
}
private double? _maxActiveDrones;
/// <summary>
/// Wrapper for the MaxActiveDrones member of the character type.
/// </summary>
public double MaxActiveDrones
{
get
{
if (_maxActiveDrones == null)
_maxActiveDrones = this.GetDouble("MaxActiveDrones");
return _maxActiveDrones.Value;
}
}
private double? _droneControlDistance;
/// <summary>
/// Wrapper for the DroneControlDistance member of the character type.
/// </summary>
public double DroneControlDistance
{
get
{
if (_droneControlDistance == null)
_droneControlDistance = this.GetDouble("DroneControlDistance");
return _droneControlDistance.Value;
}
}
/// <summary>
/// Wrapper for the MaxJumpClones member of the character type.
/// </summary>
public double MaxJumpClones
{
get
{
return this.GetDouble("MaxJumpClones");
}
}
#endregion
private Station _station;
/// <summary>
/// Wrapper for the Station member of the character type.
/// </summary>
public Station Station
{
get { return _station ?? (_station = new Station(GetMember("Station"))); }
}
#region Skills
/// <summary>
/// Wrapper for the Skill member of the character type.
/// </summary>
/// <param name="Name"></param>
/// <returns></returns>
public Skill Skill(string Name)
{
return new Skill(GetMember("Skill", Name));
}
/// <summary>
/// Wrapper for the Skill member of the character type.
/// </summary>
/// <param name="Index"></param>
/// <returns></returns>
public Skill Skill(int Index)
{
return new Skill(GetMember("Skill", Index.ToString(CultureInfo.CurrentCulture)));
}
private Skill _skillCurrentlyTraining;
/// <summary>
/// Wrapper for the SkillCurrentlyTraining member of the character type.
/// </summary>
/// <returns></returns>
public Skill SkillCurrentlyTraining
{
get { return _skillCurrentlyTraining ?? (_skillCurrentlyTraining = new Skill(GetMember("SkillCurrentlyTraining"))); }
}
private List<Skill> _skills;
/// <summary>
/// Wrapper for the GetSkills member of the character type.
/// </summary>
/// <returns></returns>
public List<Skill> GetSkills()
{
return _skills ?? (_skills = Util.GetListFromMethod<Skill>(this, "GetSkills", "skill"));
}
private double? _skillPoints;
/// <summary>
/// Wrapper for the SkillPoints member of the character type.
/// </summary>
public double SkillPoints
{
get
{
if (_skillPoints == null)
_skillPoints = this.GetDouble("SkillPoints");
return _skillPoints.Value;
}
}
private double? _skillQueueLength;
/// <summary>
/// *** Note: The return value from this datatype member does not correlate, in any way, with the way that humans typically
/// *** tell time. However, it is useful in the following contexts:
/// *** 1. If it's >0, then you are still training. If it's 0 or NULL, then you're not training. Etc...
/// *** 2. echo "My training queue will end at {$EVETime[${Math.Calc64[${Me.SkillQueueLength}+${EVETime.AsInt64}]}]}"
/// </summary>
public double SkillQueueLength
{
get
{
if (_skillQueueLength == null)
_skillQueueLength = this.GetDouble("SkillQueueLength");
return _skillQueueLength.Value;
}
}
#endregion
#region Targeting
private Entity _activeTarget;
/// <summary>
/// Wrapper for the ActiveTarget member of the character type.
/// </summary>
public Entity ActiveTarget
{
get { return _activeTarget ?? (_activeTarget = new Entity(GetMember("ActiveTarget"))); }
}
private List<Entity> _targets;
/// <summary>
/// Entities you are currently locked on
/// </summary>
public List<Entity> GetTargets()
{
Tracing.SendCallback("Character.GetTargets");
return _targets ?? (_targets = Util.GetListFromMethod<Entity>(this, "GetTargets", "entity"));
}
/// <summary>
/// Entities you are currently locked on
/// Grabs one specific target by index (0 based)
/// </summary>
public Entity GetTarget(int i)
{
Tracing.SendCallback("Character.GetTargets", i.ToString(CultureInfo.CurrentCulture));
return Util.GetFromIndexMethod<Entity>(this, "GetTargets", "entity", i);
}
private List<Entity> _targeting;
/// <summary>
/// Entities currently being targeted by you.
/// </summary>
public List<Entity> GetTargeting()
{
Tracing.SendCallback("Character.GetTargeting");
return _targeting ?? (_targeting = Util.GetListFromMethod<Entity>(this, "GetTargeting", "entity"));
}
private List<Entity> _targetedBy;
/// <summary>
/// Entities targetting you.
/// </summary>
public List<Entity> GetTargetedBy()
{
Tracing.SendCallback("Character.GetTargetedBy");
return _targetedBy ?? (_targetedBy = Util.GetListFromMethod<Entity>(this, "GetTargetedBy", "entity"));
}
#endregion
private List<Item> _hangarItems;
/// <summary>
/// Wrapper for the GetHangarItems member of the character type.
/// </summary>
/// <returns></returns>
public List<Item> GetHangarItems()
{
Tracing.SendCallback("Character.GetHangarItems");
return _hangarItems ?? (_hangarItems = Util.GetListFromMethod<Item>(this, "GetHangarItems", "item"));
}
private List<Item> _hangarShips;
/// <summary>
/// Wrapper for the GetHangarShips member of the character type.
/// </summary>
/// <returns></returns>
public List<Item> GetHangarShips()
{
Tracing.SendCallback("Character.GetHangarShips");
return _hangarShips ?? (_hangarShips = Util.GetListFromMethod<Item>(this, "GetHangarShips", "item"));
}
private List<Item> _corpHangarItems;
/// <summary>
/// Wrapper for the GetCorpHangarItems member of the character type.
/// </summary>
/// <returns></returns>
public List<Item> GetCorpHangarItems()
{
Tracing.SendCallback("Character.GetCorpHangarItems");
return _corpHangarItems ?? (_corpHangarItems = Util.GetListFromMethod<Item>(this, "GetCorpHangarItems", "item"));
}
/// <summary>
/// Wrapper for the GetCorpHangarItems member of the character type.
/// </summary>
/// <param name="corporationFolderNumber">The corporation folder number.</param>
/// <returns></returns>
public List<Item> GetCorpHangarItems(int corporationFolderNumber)
{
if (corporationFolderNumber < 1 || corporationFolderNumber > 7)
throw new ArgumentException("Corporation folder number must between 1 and 7, inclusive.", nameof(corporationFolderNumber));
Tracing.SendCallback("Character.GetCorpHangarItems");
return Util.GetListFromMethod<Item>(this, "GetCorpHangarItems", "item",
string.Format(CultureInfo.CurrentCulture, "Corporation Folder {0}", corporationFolderNumber));
}
private List<Item> _corpHangarShips;
/// <summary>
/// Wrapper for the GetCorpHangarShips member of the character type.
/// </summary>
/// <returns></returns>
public List<Item> GetCorpHangarShips()
{
return _corpHangarShips ?? (_corpHangarShips = Util.GetListFromMethod<Item>(this, "GetCorpHangarShips", "item"));
}
private List<Item> _assets;
/// <summary>
/// 1. GetAssets[index:item] (int type) [Retrieves all items that are in your assets window]
/// </summary>
public List<Item> GetAssets()
{
Tracing.SendCallback("Character.GetAssets");
return _assets ?? (_assets = Util.GetListFromMethod<Item>(this, "GetAssets", "item"));
}
/// <summary>
/// GetAssets[index:item,#] (int type) [Retrieves all items that match the StationID# given]
/// </summary>
public List<Item> GetAssets(Int64 StationID)
{
Tracing.SendCallback("Character.GetAssets", StationID);
return Util.GetListFromMethod<Item>(this, "GetAssets", "item", StationID.ToString(CultureInfo.CurrentCulture));
}
private List<Int64> _stationsWithAssets;
/// <summary>
/// 2. GetStationsWithAssets[<index:int>] (int type) [Retrieves a list of StationID#s where you currently have assets.]
/// </summary>
public List<Int64> GetStationsWithAssets()
{
Tracing.SendCallback("Character.GetStationsWithAssets");
return _stationsWithAssets ?? (_stationsWithAssets = Util.GetListFromMethod<Int64>(this, "GetStationsWithAssets", "int64"));
}
private List<MyOrder> _myOrders;
/// <summary>
/// 1. GetMyOrders[<index:myorder>] (int type) {retrieves all "My Orders" cached by your client}
/// GetMyOrders[<index:myorder>,#] (int type) {retrieves all "My Orders" cached by your client for the given TypeID#}
/// GetMyOrders[<index:myorder>,"Buy"] (int type) {retrieves all *buy* "My Orders" cached by your client}
/// GetMyOrders[<index:myorder>,"Buy",#] (int type) {retrieves all *buy* "My Orders" cached by your client for the given TypeID#}
/// GetMyOrders[<index:myorder>,"Sell"] (int type) {retrieves all *sell* "My Orders" cached by your client}
/// GetMyOrders[<index:myorder>,"Sell",#] (int type) {retrieves all *sell* "My Orders" cached by your client for the given TypeID#}
/// </summary>
public List<MyOrder> GetMyOrders()
{
Tracing.SendCallback("Character.GetMyOrders");
return _myOrders ?? (_myOrders = Util.GetListFromMethod<MyOrder>(this, "GetMyOrders", "myorder"));
}
/// <summary>
/// Wrapper for the GetMyOrders member of the character type.
/// </summary>
/// <param name="typeID"></param>
/// <returns></returns>
public List<MyOrder> GetMyOrders(int typeID)
{
Tracing.SendCallback("Character.GetMyOrders", typeID);
return Util.GetListFromMethod<MyOrder>(this, "GetMyOrders", "myorder", typeID.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Wrapper for the GetMyOrders member of the character type.
/// </summary>
/// <param name="orderType"></param>
/// <returns></returns>
public List<MyOrder> GetMyOrders(OrderType orderType)
{
Tracing.SendCallback("Character.GetMyOrders", orderType);
return Util.GetListFromMethod<MyOrder>(this, "GetMyOrders", "myorder", orderType.ToString());
}
/// <summary>
/// Wrapper for the GetMyOrders member of the character type.
/// </summary>
/// <param name="orderType"></param>
/// <param name="typeID"></param>
/// <returns></returns>
public List<MyOrder> GetMyOrders(OrderType orderType, int typeID)
{
Tracing.SendCallback("Character.GetMyOrders", orderType, typeID);
return Util.GetListFromMethod<MyOrder>(this, "GetMyOrders", "myorder", orderType.ToString(), typeID.ToString(CultureInfo.CurrentCulture));
}
private int? _targetCount;
/// <summary>
/// Wrapper for Me.TargetCount
/// </summary>
public int TargetCount
{
get
{
if (_targetCount == null)
_targetCount = this.GetInt("TargetCount");
return _targetCount.Value;
}
}
private int? _targetingCount;
/// <summary>
/// Wrapper for Me.TargetingCount
/// </summary>
public int TargetingCount
{
get
{
if (_targetingCount == null)
_targetingCount = this.GetInt("TargetingCount");
return _targetingCount.Value;
}
}
private int? _targetedByCount;
/// <summary>
/// Wrapper for Me.TargetedByCount
/// </summary>
public int TargetedByCount
{
get
{
if (_targetedByCount == null)
_targetedByCount = this.GetInt("TargetedByCount");
return _targetedByCount.Value;
}
}
/// <summary>
/// Index starts at 1.
/// </summary>
/// <param name="index"></param>
/// <returns></returns>
public Being ContactByIndex(int index)
{
return new Being(GetMember("Contact", index.ToString(CultureInfo.CurrentCulture)));
}
public Being ContactById(int id)
{
return new Being(GetMember("Contact", "id", id.ToString(CultureInfo.CurrentCulture)));
}
public Being ContactByName(string name)
{
return new Being(GetMember("Contact", name));
}
#endregion
#region Methods
/// <summary>
/// Argument is a PERCENTAGE of your max velocity.
/// </summary>
public bool SetVelocity(int SpeedAsPercentage)
{
Tracing.SendCallback("Character.SetVelocity", SpeedAsPercentage.ToString(CultureInfo.CurrentCulture));
return ExecuteMethod("SetVelocity", SpeedAsPercentage.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Wrapper for the SetCorpStanding method of the character type.
/// </summary>
/// <param name="CorpID"></param>
/// <param name="Standing"></param>
/// <param name="Reason"></param>
/// <returns></returns>
public bool SetCorpStanding(int CorpID, float Standing, string Reason)
{
Tracing.SendCallback("Character.SetCorpStanding", CorpID, Standing, Reason);
return ExecuteMethod("SetCorpStanding", CorpID.ToString(CultureInfo.CurrentCulture), Standing.ToString(CultureInfo.CurrentCulture), Reason);
}
/// <summary>
/// Wrapper for the SetPilotStanding method of the character type.
/// </summary>
/// <param name="CharID"></param>
/// <param name="Standing"></param>
/// <param name="Reason"></param>
/// <returns></returns>
public bool SetPilotStanding(Int64 CharID, float Standing, string Reason)
{
Tracing.SendCallback("Character.SetPilotStanding", CharID, Standing, Reason);
return ExecuteMethod("SetPilotStanding", CharID.ToString(CultureInfo.CurrentCulture), Standing.ToString(CultureInfo.CurrentCulture), Reason);
}
/// <summary>
/// Wrapper for the StackAllHangarItems method of the character type.
/// </summary>
/// <returns></returns>
public bool StackAllHangarItems()
{
// TODO - Remove this when stealthbot is updated.
Tracing.SendCallback("Character.StackAllHangarItems - Redirecting to EVEWindow");
EVEWindow wnd = new EVEWindow(LavishScript.Objects.GetObject("EVEWindow", "ByName", "hangarFloor"));
return wnd.StackAll();
}
/// <summary>
/// 2. UpdateMyOrders
/// ~ This method should be called before any calling of "GetMyOrders".
/// </summary>
public bool UpdateMyOrders()
{
Tracing.SendCallback("Character.UpdateMyOrders");
return ExecuteMethod("UpdateMyOrders");
}
private List<Attacker> _attackers;
/// <summary>
/// Get a list of Attackers.
/// Note: This will return a null list if there are no attackers.
/// </summary>
/// <returns></returns>
public List<Attacker> GetAttackers()
{
if (Tracing.Callback != null)
Tracing.SendCallback("Character.GetAttackers");
return _attackers ?? (_attackers = Util.GetListFromMethod<Attacker>(this, "GetAttackers", "attacker"));
}
private List<Entity> _attackersAsEntities;
/// <summary>
/// Get a list of Attackers as entities.
/// </summary>
/// <returns></returns>
public List<Entity> GetAttackersAsEntities()
{
if (Tracing.Callback != null)
Tracing.SendCallback("Character.GetAttackersAsEntities");
return _attackersAsEntities ?? (_attackersAsEntities = Util.GetListFromMethod<Entity>(this, "GetAttackers", "entity"));
}
private List<Jammer> _jammers;
/// <summary>
/// Get a list of Jammers on us.
/// </summary>
/// <returns></returns>
public List<Jammer> GetJammers()
{
if (Tracing.Callback != null)
Tracing.SendCallback("Character.GetAttackers");
return _jammers ?? (_jammers = Util.GetListFromMethod<Jammer>(this, "GetJammers", "jammer"));
}
#endregion
}
/// <summary>
/// The ubiquitous Me object. Alias for a Character object.
/// </summary>
public class Me : Character
{
/// <summary>
/// Default constructor
/// </summary>
public Me()
: base()
{
}
}
}