Commit Graph

67 Commits

Author SHA1 Message Date
clemty
2bbc1fcda4 LUA and trait documentation fixes
- Typo in documentation ("proximitry").
- Add spaces between sentences.
- Remove most occurrences of "  " (two spaces) unless clearly used as indendation
- Punctuation (although no fullstop after filenames like "notifications.yaml").
2015-08-24 19:41:15 +02:00
Pavel Penev
09f67d18bb Some internal "race" to "faction" renaming 2015-08-22 23:34:36 +03:00
Taryn Hill
7656ad3d12 Use a default of 1d instead of 0d in LightingGlobal if the necessary trait doesn't exist 2015-08-02 10:26:15 -05:00
Taryn Hill
2f452d88b3 Rename EffectsGlobal to LightingGlobal
Remove ChangeLighting in favor of individual channels
Change RA's fort-lonestar to use Lighting instead of Effect
2015-08-02 10:03:39 -05:00
Paul Chote
9b3ef9e7f7 Move MusicPlaylist to Mods.Common. 2015-08-01 22:56:07 +01:00
penev92
4616828b28 Deprecate PlayerProperties.Race 2015-07-25 16:43:34 +03:00
penev92
bb648decc3 Rename Player.Country to Player.Faction 2015-07-15 04:06:52 +03:00
Oliver Brakmann
380cf22477 Merge pull request #8661 from penev92/bleed_renameCountry
Rename the Country trait to Faction
2015-07-14 21:05:52 +02:00
Oliver Brakmann
4ed7a4ce8a Merge pull request #8659 from penev92/bleed_playerReference
Rename PlayerReference.Race to Faction
2015-07-14 20:15:56 +02:00
penev92
2e04fb5ddd Rename Faction trait members
Rename Faction.Race to Faction.InternalName
2015-07-14 18:50:39 +03:00
Matthias Mailänder
25d14d87e1 add Effect.ChangeLighting(red, green, blue, ambient) to Lua API 2015-07-12 22:12:38 +02:00
Zimmermann Gyula
32c29e7dd6 Removes the MapMusic checkbox. 2015-07-12 17:27:12 +02:00
Zimmermann Gyula
60fafaa5a7 Refactors the music player. 2015-07-12 17:27:02 +02:00
Matthias Mailänder
cae889fb67 leave a warning for thirdparty scripters 2015-07-09 21:15:57 +02:00
Matthias Mailänder
43ddf14998 rename internal API for consistency 2015-07-09 12:41:52 +02:00
Matthias Mailänder
8d8d7ab8ea rename WRange to WDist in documentation 2015-07-09 12:36:29 +02:00
Matthias Mailänder
413baf9d8b rename WDist.Range to WDist.Length 2015-07-09 10:55:38 +02:00
Matthias Mailänder
7447e0bf93 rename WRange to WDist 2015-07-09 10:55:38 +02:00
penev92
1d49c23af0 Rename PlayerReference.Race and LockRace to Faction and LockFaction 2015-07-05 23:08:49 +03:00
Matthias Mailänder
ed7b54a21e add a Lua controllable flash palette trait 2015-07-05 18:15:12 +02:00
Matthias Mailänder
06f92c5b94 add sound file playing to the Lua API 2015-07-05 18:07:11 +02:00
Paul Chote
41fa77d12a Fix projected world coordinate calculation for Lua API. 2015-07-05 14:57:58 +01:00
abcdefg30
57cea5aba1 Added a Capture function to lua 2015-07-02 21:48:30 +02:00
Matthias Mailänder
ae59198363 Merge pull request #8418 from abcdefg30/newlua_other_cool_stuff
Added even more lua functions
2015-06-28 12:37:06 +02:00
abcdefg30
4b39064661 Add a Demolish function to lua 2015-06-28 01:25:55 +02:00
abcdefg30
a4fd34558d Add a lua function for beacons 2015-06-28 01:25:37 +02:00
abcdefg30
e1c674aeca Add EnterTransport function to lua 2015-06-28 01:25:36 +02:00
abcdefg30
6527d7751b Expose a Attack method to lua 2015-06-27 17:55:38 +02:00
Matthias Mailänder
87c2e68973 Merge pull request #8321 from penev92/bleed_lintUpgrades
Add a lint check for actor upgrades
2015-06-27 16:41:04 +02:00
abcdefg30
70754b72f5 Merge pull request #8529 from pchote/fix-mission-quit-desync
Use INotifyActorDisposing to dispose LuaScript as part of the world disposal.
2015-06-21 21:35:02 +02:00
Paul Chote
f8205d3d22 Clean up after LuaScript when tearing down the world. 2015-06-21 18:48:54 +01:00
Oliver Brakmann
fbd5938f3f Do not fire script triggers while the world is being destroyed 2015-06-21 19:37:25 +02:00
penev92
fbbd9a7eaa Add UpgradeGrantedReferenceAttribute 2015-06-21 11:06:35 +03:00
penev92
2ab7abcee4 Add ScriptUpgradesCache class to enable maps to explicitly declare what upgrades their Lua scripts will use 2015-06-21 11:00:18 +03:00
Paul Chote
585a43fd8f Rename Actor.Destroy/Destroyed to Dispose/Disposed. 2015-05-29 19:08:38 +01:00
Oliver Brakmann
2ce9af41d3 Merge pull request #8275 from abcdefg30/FacingGlobal
Add default facings to lua
2015-05-27 23:51:10 +02:00
abcdefg30
59a5eb4937 Add default facings to lua 2015-05-27 22:17:41 +02:00
abcdefg30
91f62b5741 Expose more PlayerProperties to lua 2015-05-27 16:51:28 +02:00
abcdefg30
27db5851e2 Add default colors to HSLColorGlobal 2015-05-27 16:51:27 +02:00
abcdefg30
a5c9bc9a2c Expose an HSL color parameter to lua 2015-05-25 16:57:16 +02:00
abcdefg30
35374d168f Add support for custom mission timers: UserInterfaceGlobal 2015-05-25 16:57:15 +02:00
abcdefg30
57dbdd097d Add a FormatTime function to UtilsGlobal.cs 2015-05-16 13:19:44 +02:00
RoosterDragon
fb0cab7481 Cache results of TraitsImplementing calls.
If a class is caching the TraitsImplementing enumerable, instead cache the results of enumerating it to an array. The avoids having to enumerate the sequence each time it is needed.
2015-04-25 20:42:27 +01:00
Moshe Schmidt
7d6f367d84 Added CnC: gdi05b 2015-04-13 22:31:51 +02:00
Oliver Brakmann
32ed63727d Revert "Expose Plane turn-to-attack delay to yaml."
This reverts commit 02da41e5c5.
2015-04-03 23:42:35 +02:00
Taryn Hill
02da41e5c5 Expose Plane turn-to-attack delay to yaml.
Require Plane in some ctors.
2015-04-01 00:12:20 -05:00
reaperrr
1e9d1a6cb7 Cache trait look-ups in the constructor where possible for Air activities/traits 2015-03-27 13:47:04 +01:00
reaperrr
38d5163062 Refactors LimitedAmmo to AmmoPool.
Removes Reloads trait.

This enables adding multiple AmmoPools via @ differentiators and
Name which adds the possibility to assign each armament to a specific
ammo pool.

Furthermore, this moves all Reloads functionality onto AmmoPool.

Now a combination of all three is possible on a single actor: no limited
ammo, limited ammo that can reload on its own, and limited ammo which
needs to be reloaded at a rearm actor.

Additionally moves RearmSound from Minelayer to AmmoPool.
2015-03-26 23:21:01 +01:00
penev92
16dee554c4 Introduce OnDiscovered and OnPlayerDiscovered Lua triggers 2015-03-21 15:19:18 +02:00
Paul Chote
e5c03413cc Move common widgets from Game to Mods.Common. 2015-03-21 11:53:53 +00:00