Commit Graph

45 Commits

Author SHA1 Message Date
abcdefg30
33eeee4680 Added OnKilledOrCaptured and OnAllKilledOrCaptured 2014-11-23 13:32:40 +01:00
abcdefg30
e29adf5f4f Added proximity triggers 2014-11-23 13:31:39 +01:00
reaperrr
127969d014 Move Air activities and traits to Activities\Air and Traits\Air, respectively 2014-11-17 12:56:18 +01:00
reaperrr
0cbcae93a9 Move Valued, CustomSellValue and CustomBuildTimeValue to Common 2014-11-14 01:01:46 +01:00
reaperrr
5aec72ce6d Adds Mods.Common usings where necessary. 2014-11-05 20:46:53 +01:00
Paul Chote
8e4765ca46 Allow integers to bridge to enums. 2014-10-26 09:19:45 +13:00
Paul Chote
69b561b12c Fix transport cargo visibility in GDI01 and GDI02. 2014-10-26 09:19:45 +13:00
Oliver Brakmann
4b63b6ef2e Whitespace fixes 2014-10-21 22:08:06 +02:00
Oliver Brakmann
d1af36c189 Point out pitfalls in the Lua API documentation 2014-10-21 22:08:06 +02:00
Oliver Brakmann
35ccc79902 Move Utils.CenterOfCell into Map global 2014-10-21 22:08:06 +02:00
Oliver Brakmann
37c5d51f19 Move Utils.Seconds and .Minutes into DateTime global
Also renames Date.IsHalloween to DateTime.IsHalloween
2014-10-21 22:08:06 +02:00
abcdefg30
b85cff62d3 Added OnInfiltrated function to lua 2014-10-19 13:24:51 +02:00
Oliver Brakmann
c0da807ee7 Add production support to the new Lua API 2014-10-18 18:19:03 +02:00
Oliver Brakmann
5140ce4762 More Lua API enhancements 2014-10-18 18:19:02 +02:00
Paul Chote
dbd4b0931b Don’t crash if trigger callbacks throw exceptions. 2014-10-18 12:59:11 +13:00
Paul Chote
772994c1c4 Remove Mobile assumptions from Lua APIs. 2014-10-07 19:30:23 +13:00
Matthias Mailänder
24732ae635 port allies-02 to new Lua API 2014-10-05 22:45:23 +02:00
Paul Chote
85b26d1ff8 Update Lua bindings to use array arguments. 2014-10-04 19:43:27 +13:00
atlimit8
3f6e1a608a Added IDisableMove 2014-10-03 08:07:05 -05:00
Paul Chote
a61fdba44d Implement cell triggers. Closes #4400. 2014-09-30 19:25:09 +13:00
Matthias Mailänder
867ebcec3b port allies-01 to new Lua API 2014-09-28 10:53:01 +02:00
Matthias Mailänder
9c3baabb6e Merge pull request #6423 from TWaalen/upstream/fix-spelling-luadocs
LuaDocs/Desc attributes spelling fixes
2014-09-07 08:37:01 +02:00
Thijs Waalen
3a80ee27cd Fix spelling for Actor.Create description 2014-09-06 21:56:33 +02:00
Thijs Waalen
4f4bdf249b Fix wrong changes of possessive 2014-09-06 21:42:19 +02:00
Thijs Waalen
f47fe75970 LuaDocs consistency fixes 2014-09-06 19:29:38 +02:00
Thijs Waalen
eb959c5858 LuaDocs punctuation fixes 2014-09-06 19:29:37 +02:00
Thijs Waalen
a9b5e1d911 LuaDocs spelling fixes 2014-09-06 19:29:37 +02:00
Matthias Mailänder
128b2b8b67 rename the boolean 2014-09-05 15:42:38 +02:00
Matthias Mailänder
a7389a0e45 make this a seasonal easter egg 2014-08-31 20:38:16 +02:00
Oliver Brakmann
74c45d5d21 Add reinforcements functions to Lua API 2014-08-23 16:21:40 +02:00
Oliver Brakmann
882f3f34c2 Add a number of small helper functions to Lua API 2014-08-23 16:21:40 +02:00
Oliver Brakmann
d23707b5f7 Add OnCapture, OnAddedToWorld and OnRemovedFromWorld triggers to Lua API
This brings the new Lua API up to feature-parity with the old API in the
trigger department.
2014-08-23 16:21:40 +02:00
Curtis Shmyr
cb4bd52fc0 Added more Lua functions 2014-08-15 19:51:02 -06:00
Oliver Brakmann
8c43ffb802 Add some Media functions to new Lua API 2014-08-08 13:35:50 +02:00
Oliver Brakmann
cca6646927 Add mission objectives to Lua interface 2014-08-08 13:35:43 +02:00
Oliver Brakmann
a448ba29a8 Move trigger lists into a dictionary for easier access and enumeration 2014-08-08 13:34:47 +02:00
Matthias Mailänder
405d21d797 add Game.AddChatLine to the new Lua API 2014-07-27 07:34:24 +02:00
Paul Chote
7b52fa52b6 Replace CPos.CenterPosition -> Map.CenterOfCell. 2014-06-27 23:30:40 +12:00
ScottNZ
90894aa03e Use var everywhere 2014-06-15 22:17:34 +12:00
ScottNZ
dbffce81a6 Remove unused usings 2014-06-15 22:16:40 +12:00
Pavlos Touboulidis
86febed0ce Move ChooseRandomEdgeCell from WorldUtils to Map 2014-06-13 14:31:01 +03:00
Pavlos Touboulidis
f0c672b70c Move ChooseRandomCell from WorldUtils to Map 2014-06-13 14:02:51 +03:00
RoosterDragon
b733465f33 General uncontroversial cleanup:
- Made private methods static where possible (runtime can elide checking the object for null).
- Declared attribute classes as sealed (allows reflection on attributes to complete faster).
- Moved some static cctor's into field initializers (static cctor's are slower than static field initializers).
- Made classes static if they contained only static methods (can't create instances of useless objects).
- Use inferable Exts.Lazy and not new Lazy<T>().
- Added required STAThread attribute to CrashDialog.
- Removed unused parameters in private methods.
- Added Serializable attribute to exceptions.
- Added parameter name in calls to ArgumentNullException.
- Use of as operator instead of is + cast.
- Changed (x as Foo).Bar anti-pattern into ((Foo)x).Bar. Results in sensible cast exceptions on error rather than null dereferences.
- Removed unused method in NullShader.
2014-05-23 15:50:54 +01:00
Pavlos Touboulidis
63ec6d60e7 Refactoring to remove static Rules & SequenceProvider 2014-05-17 14:32:03 +03:00
Paul Chote
06f162ad57 Add initial standard library, and port shellmaps. 2014-05-02 22:18:34 +12:00