Matthias Mailänder
7901c06e4c
differentiate new/old Lua APIs
2014-07-20 13:53:12 +02:00
Oliver Brakmann
3a67b3dec3
Fix breakage of the old Lua API due to recent changes
...
Specifically, the CPos::CenterPosition -> Map::CenterOfCell rename (#5758 ),
as well as the additional argument to Paradrop::SetLZ (#5695 ).
2014-07-06 01:21:22 +02:00
Paul Chote
d7f1b1c9e2
Remove CVec -> WVec conversion.
2014-06-27 23:30:41 +12:00
Paul Chote
086ec07eb6
Add World parameter to Target.FromCell.
2014-06-27 23:30:40 +12:00
Paul Chote
b52cdd4b45
Remove redundant FindActorsInBox helpers.
2014-06-27 23:30:40 +12:00
Paul Chote
ca082e3cec
Allow ProductionQueue to filter by race.
2014-06-26 23:14:13 +12:00
Paul Chote
7b3a0ebeb5
Tidy production traits.
2014-06-26 23:14:10 +12:00
Paul Chote
c5089db19c
Allow actors to exist in multiple building queues.
2014-06-26 23:12:22 +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
a598a01108
Fixed IDisposable implementation and usage.
...
- Implement IDisposable interface correctly, with sealed classes where possible for simplicity.
- Add using statement around undisposed local variables.
2014-06-10 11:23:55 +01: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
Oliver Brakmann
b90e6ccae5
Remove the deprecation notice from the old Lua interface
...
Fixes #5332 . The impending deprecation should probably still be
mentioned in the release notes.
2014-05-17 19:34:57 +02:00
Pavlos Touboulidis
63ec6d60e7
Refactoring to remove static Rules & SequenceProvider
2014-05-17 14:32:03 +03:00
Paul Chote
f6efc9c5bc
Add deprecation notice to the original api.
2014-05-02 22:08:42 +12:00
Paul Chote
4935266945
Merge FileFormats dll into Game and reorganise namespaces.
2014-04-17 01:20:47 +12:00
ScottNZ
856120f2b2
Remove hardcoded missions
2014-03-08 00:26:09 +13:00
ScottNZ
7d43ecc33f
Remove the temperate RA shellmap and port the desert shellmap to Lua.
2014-03-06 19:27:29 +13:00
Oliver Brakmann
e65626cc6b
Add Actor.Guard
2014-02-17 19:16:47 +01:00
Oliver Brakmann
886efd0b97
Add production-related Lua functions
2014-02-02 23:37:22 +01:00
Oliver Brakmann
b3323869cb
Add Map.FindActorsInCircle and ...InBox, plus related shortcuts
2014-02-02 23:37:22 +01:00
Oliver Brakmann
5322096dc4
Add Team.Patrol and Actor.Patrol. Fixes #4491 .
2014-02-02 23:37:22 +01:00
Paul Chote
fae9611d27
Fix HeliFly lua bindings.
2014-02-01 10:56:06 +13:00
Paul Chote
4eaaa052cc
Simplify Fly interface.
2014-02-01 10:55:04 +13:00
Paul Chote
85500c0ec7
Tidy AutoTarget code.
2014-02-01 10:55:04 +13:00
ScottNZ
09b694095c
Add Map.GetNamedActor for map actor lookup
2013-12-20 19:20:56 +13:00
ScottNZ
b2e9de810e
Add CPos.New etc functions to Lua standard library and helpers to LuaScriptInterface.cs. Rename Team.Create to Team.New.
2013-12-19 19:26:57 +13:00
ScottNZ
1a4888b050
PerfSample Lua Tick execution
2013-12-06 23:11:33 +13:00
ScottNZ
452a0c0e25
Add Lua reserved name checking and exception hooks
2013-12-06 21:53:07 +13:00
ScottNZ
1cf1086122
Swap LuaInterface for NLua and KopiLua
2013-12-06 21:52:59 +13:00
ScottNZ
e4d477b0e0
Add Lua standard library and supporting C#/yaml
2013-11-29 23:48:44 +13:00
ScottNZ
cd0b3d8862
Add map scripting support
2013-11-18 20:55:59 +13:00