MCPcopy Create free account
hub / github.com/bwapi/bwapi / Unit

Class Unit

bwapi/BWMemoryEdit/BW/Unit.cs:17–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace BWMemoryEdit
16{
17 [TypeConverter(typeof(ExpandableObjectConverter))]
18 public class Unit
19 {
20 [Editor(typeof(JumpToReferenceTypeEditor), typeof(UITypeEditor))]
21 public Reference<Unit> prev { get { return data.prev; } set { } }
22 [Editor(typeof(JumpToReferenceTypeEditor), typeof(UITypeEditor))]
23 public Reference<Unit> next { get { return data.next; } set { } }
24
25 [Category("Core Stats")]
26 public Int32 hitPoints { get { return data.hitPoints; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "hitPoints").ToInt32(), value); } }
27
28 [Editor(typeof(JumpToReferenceTypeEditor), typeof(UITypeEditor))]
29 public Reference<Sprite> sprite { get { return data.sprite; } set { } }
30
31 [Category("Movement")]
32 public Target moveTarget { get { return data.moveTarget; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "moveTarget").ToInt32(), value); } }
33
34 [Category("Movement")]
35 public Position nextMovementWaypoint { get { return data.nextMovementWaypoint; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "nextMovementWaypoint").ToInt32(), value); } }
36 [Category("Movement")]
37 public Position nextTargetWaypoint { get { return data.nextTargetWaypoint; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "nextTargetWaypoint").ToInt32(), value); } }
38
39 [Editor(typeof(Utils.FlagEnumUIEditor), typeof(System.Drawing.Design.UITypeEditor))]
40 [Category("Movement")]
41 public UnitMovementFlags movementFlags { get { return data.movementFlags; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "movementFlags").ToInt32(), (byte)value); } }
42 [Category("Movement")]
43 public Byte currentDirection1 { get { return data.currentDirection1; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "currentDirection1").ToInt32(), value); } }
44 [Category("Movement")]
45 public Byte flingyTurnRadius { get { return data.flingyTurnRadius; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "flingyTurnRadius").ToInt32(), value); } }
46 [Category("Movement")]
47 public Byte velocityDirection1 { get { return data.velocityDirection1; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "velocityDirection1").ToInt32(), value); } }
48 [Category("Movement")]
49 public FlingyType flingyType { get { return data.flingyType; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "flingyType").ToInt32(), value); } }
50 [Category("Movement")]
51 public Byte _unknown_0x026 { get { return data._unknown_0x026; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "_unknown_0x026").ToInt32(), value); } }
52 [Category("Movement")]
53 public Byte flingyMovementType { get { return data.flingyMovementType; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "flingyMovementType").ToInt32(), value); } }
54 [Category("Movement")]
55 public Position position { get { return data.position; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "position").ToInt32(), value); } }
56 [Category("Movement")]
57 public LongPosition halt { get { return data.halt; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "halt").ToInt32(), value); } }
58 [Category("Movement")]
59 public UInt32 flingyTopSpeed { get { return data.flingyTopSpeed; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "flingyTopSpeed").ToInt32(), value); } }
60 [Category("Movement")]
61 public Int32 current_speed1 { get { return data.current_speed1; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "current_speed1").ToInt32(), value); } }
62 [Category("Movement")]
63 public Int32 current_speed2 { get { return data.current_speed2; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "current_speed2").ToInt32(), value); } }
64 [Category("Movement")]
65 public LongPosition current_speed { get { return data.current_speed; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "current_speed").ToInt32(), value); } }
66 [Category("Movement")]
67 public UInt16 flingyAcceleration { get { return data.flingyAcceleration; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "flingyAcceleration").ToInt32(), value); } }
68 [Category("Movement")]
69 public Byte currentDirection2 { get { return data.currentDirection2; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "currentDirection2").ToInt32(), value); } }
70 [Category("Movement")]
71 public Byte velocityDirection2 { get { return data.velocityDirection2; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "velocityDirection2").ToInt32(), value); } }
72
73 public Byte playerID { get { return data.playerID; } set { ptr.Write(Marshal.OffsetOf(data.GetType(), "playerID").ToInt32(), value); } }
74

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.80

Tested by

no test coverage detected