Skip to content

Commit 9b01e4b

Browse files
committed
sight/detection/aggro ranges; better configurable victory conditions
1 parent e933051 commit 9b01e4b

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
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 = 47;
37+
static const uint32 UW_VERSION = 48;
3838
static const uint32 UW_GameTicksPerSecond = 20;
3939

4040
typedef struct UwIds

c/uwapi/uwapi/modules/scriptsServer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ extern "C"
5858
UNNATURAL_API float uwCutsceneTime(void); // seconds since start of the cutscene
5959
UNNATURAL_ENTRY void uwCutsceneSkipCallback(void);
6060

61-
UNNATURAL_API void uwStandardVictoryConditions(bool enable);
61+
UNNATURAL_API void uwStandardVictoryConditions(bool viteals, bool rivalries);
6262
UNNATURAL_API void uwSendChatEveryone(const char *msg);
6363
UNNATURAL_API void uwSendChatOne(const char *msg, uint32 targetId);
6464
UNNATURAL_API void uwSendChatDirect(const char *msg, const uint32 targetsIds[], const uint32 targetsCount);

csharp/uwapi/interop.cs

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

330-
public const uint UW_VERSION = 47;
330+
public const uint UW_VERSION = 48;
331331
public const uint UW_GameTicksPerSecond = 20;
332332
[StructLayout(LayoutKind.Sequential)]
333333
public struct UwIds

csharp/uwapi/prototypes.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,24 @@ 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 detector; // this units can detect units in its sight range irrespective of their detection range
5657
public bool maximumDistance; // the unit moves to maximum distance when shooting
57-
public bool excludeFromMilitary; // the unit is excluded from all-army hotkey
5858
public bool neutralCategory; // the unit is put in neutral category in lexicon
59+
public bool excludeFromMilitary; // the unit is excluded from all-army hotkey
5960
public bool explodesWhenAttacks; // suicidal unit
6061
public bool explodesWhenKilled;
6162
public bool explodesWhenSelfDestructed;
6263
public float processingSpeed;
64+
public float sightRange;
65+
public float detectionRange;// range at which this unit is always detected
66+
public float aggroRange;
6367
public float lifeRegen; // life per second
6468
public float manaRegen; // mana per second
6569
public uint maxLife;
6670
public uint maxMana;
6771
public uint startingMana;
68-
public uint regenDelay; // ticks
72+
public uint regenDelay; // ticks out of combat before regen applies (affects both life and mana)
73+
public uint score;
6974
public uint armorType;
7075
public string armorTypeName;
7176

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 = 47;
12+
static const uint32 UW_VERSION = 48;
1313
static const uint32 UW_GameTicksPerSecond = 20;
1414

1515
typedef struct UwIds

0 commit comments

Comments
 (0)