Skip to content

Commit 6885fa6

Browse files
committed
exploding units
1 parent 46db356 commit 6885fa6

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

c/uwapi/uwapi/modules/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C"
3434
typedef uint64_t uint64;
3535
typedef int64_t sint64;
3636

37-
static const uint32 UW_VERSION = 38;
37+
static const uint32 UW_VERSION = 39;
3838
static const uint32 UW_GameTicksPerSecond = 20;
3939

4040
typedef struct UwIds

csharp/uwapi/interop.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public static extern void uwCommandPlaceConstruction(uint constructionProto, uin
317317
[DllImport(LibName, CallingConvention = CallingConvention.Cdecl)]
318318
public static extern void uwCommandSelfDestruct(uint entityId);
319319

320-
public const uint UW_VERSION = 38;
320+
public const uint UW_VERSION = 39;
321321
public const uint UW_GameTicksPerSecond = 20;
322322
[StructLayout(LayoutKind.Sequential)]
323323
public struct UwIds

csharp/uwapi/prototypes.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ public class ProtoUnit : ProtoCommon
5353
public bool logistics; // vehicle that is automatically controlled by the logistics system
5454
public bool assembler; // the unit must have at least one valid recipe
5555
public bool emptyNeighbors; // the building requires empty space around
56+
public bool maximumDistance; // the unit moves to maximum distance when shooting
5657
public bool neutralCategory; // the unit is put in neutral category in lexicon
58+
public bool explodesWhenAttacks; // suicidal unit
59+
public bool explodesWhenKilled;
60+
public bool explodesWhenSelfDestructed;
5761
public float processingSpeed;
5862
public float lifeRegen; // life per second
5963
public float manaRegen; // mana per second
@@ -77,6 +81,14 @@ public class ProtoUnit : ProtoCommon
7781
public float splashFractionAtEdge;
7882
public float splashFractionToFriendly;
7983

84+
// explosion
85+
public uint explosionDamageType;
86+
public string explosionDamageTypeName;
87+
public float explosionDamage;
88+
public float explosionRadius; // meters
89+
public float explosionFractionAtEdge;
90+
public float explosionFractionToFriendly;
91+
8092
// mobile only
8193
public Dictionary<uint, float> speeds; // terrain type -> speed (meters per second)
8294

python/uwapi/bots.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ typedef int32_t sint32;
99
typedef uint64_t uint64;
1010
typedef int64_t sint64;
1111

12-
static const uint32 UW_VERSION = 38;
12+
static const uint32 UW_VERSION = 39;
1313
static const uint32 UW_GameTicksPerSecond = 20;
1414

1515
typedef struct UwIds

0 commit comments

Comments
 (0)