EvilFactory
5de8d0293f
Registered MathUtils and XMLExtensions as extension types, moved GetType to a better place
2023-04-25 21:27:11 -03:00
EvilFactory
93a5065171
Added conversion for OnAttacked and OnDeath handlers and added new hook character.damageLimb
2023-04-25 10:20:24 -03:00
EvilFactory
675b4f349c
Added LuaUserData.IsRegistered
2023-04-09 14:07:26 -03:00
EvilFactory
df79d22e93
Return empty table if we try to get ClientList in singleplayer
2023-04-01 11:40:25 -03:00
EvilFactory
9dc87c34f3
Fixed error "Attempt to perform operations with resources owned by different script" that would sometimes happen when reloading lua
2023-03-23 12:30:20 -03:00
EvilFactory
5fc25c2453
Added LuaUserData.MakePropertyAccessible
2023-03-22 14:09:10 -03:00
EvilFactory
e5043e79ea
Remove unnecessary casts and added registration for ImmutableArray
2023-03-20 16:42:17 -03:00
EvilFactory
6974c5338a
Simplify how None is handled and fixed libs getting loaded too late
2023-03-17 20:24:54 -03:00
EvilFactory
05c325ac02
Fixed broken Option<T> conversion
2023-03-13 14:31:53 -03:00
EvilFactory
5a3f9ebc80
1.0 Merge fixes
2023-03-13 13:37:24 -03:00
EvilFactory
27cde50c08
Register particles, added Game.Paused which is always false to server-side, and exposed ParticleManager
2023-02-28 16:57:17 -03:00
EvilFactory
5003d0beb7
Fixed GetComponentString not working with custom types and registered/added missing types
2023-02-13 17:06:48 -03:00
EvilFactory
a8171bd4e4
Fixed compile errors
2023-01-31 13:26:59 -03:00
EvilFactory
8fcf0f7c8c
Removed CsScriptRunner since its useless
2023-01-18 22:53:55 -03:00
EvilFactory
17d125e6d5
Fixed RoundStarted returning incorrect values in sub editor
2023-01-17 13:16:30 -03:00
EvilFactory
9fcab5ff60
Added a ToString method for Lua primitive types and made the value public
2023-01-06 12:31:23 -03:00
EvilFactory
c739ea3952
Unstable fixes
2022-12-09 20:19:36 -03:00
EvilFactory
505b6af2ee
Fix LuaUserData.IsTargetType not behaving as originally due to it comparing types
2022-12-06 18:58:28 -03:00
EvilFactory
08f18e2e69
Rename members to use correct case
2022-11-26 22:16:40 -03:00
EvilFactory
ee1a87be19
Fix Game.RoundStarted reporting incorrect values on Singleplayer
2022-11-21 17:38:44 -03:00
EvilFactory
2931ef00ea
Added TypeOf
2022-11-14 14:31:38 -03:00
EvilFactory
3ba75e5c44
You can now specify the types in LuaUserData.MakeMethodAccessible and cleaned the code up a bit
2022-11-14 14:20:52 -03:00
EvilFactory
b77dde156b
Get docs in line and added networking manual
2022-10-29 19:44:23 -03:00
EvilFactory
09979cb4c9
Fix client-side commands working when they shouldn't
2022-10-28 15:14:43 -03:00
EvilFactory
5e29d1d8ba
Fix mixed spaces and tabs
2022-10-28 12:29:35 -03:00
EvilFactory
8158213471
Added AccountId, Endpoint and TimeSpan for later
2022-10-25 12:50:17 -03:00
EvilFactory
18ee41c610
Remove unnecessary null checks and added missing return statement
2022-10-07 11:30:59 -03:00
EvilFactory
1eed13fcd0
added support for None<T> and Some<T> and added some missing types from last update
2022-10-05 20:55:15 -03:00
EvilFactory
729110484f
texture loader and option support
2022-10-05 12:17:40 -03:00
EvilFactory
6c38a555bb
Re-add ForceVoice and ForceLocalVoice as compatibility
2022-09-29 16:20:47 -03:00
EvilFactory
faad59f20d
fix projects and compile errors
2022-09-29 14:08:59 -03:00
peelz
cd8316ea4c
Fix NRE in LuaUserData.GetType
2022-09-17 00:11:09 -04:00
peelz
13d0510d37
Make lua converters private
2022-08-20 11:32:18 -04:00
peelz
d547c97c80
Fix Hook.Add compatibility with C# mods
2022-08-20 11:32:18 -04:00
EvilFactory
9fb25252a6
added custom converters for GUICustomComponent's delegates
2022-08-20 12:03:05 -03:00
peelz
860449aaed
Fix NRE in GUI lua converters
2022-08-17 19:49:08 -04:00
EvilFactory
53b92e3a44
added RespawnManager to Game
2022-08-14 10:54:50 -03:00
EvilFactory
582d6a5c26
fix inverted check for SaveGame
2022-08-11 19:14:14 -03:00
EvilFactory
53c586b22f
add save folder to whitelist
2022-08-11 12:59:20 -03:00
EvilFactory
4bccc33c4f
added Game.ServerSettings for clients and Game.Client/Game.Server
2022-08-10 16:52:54 -03:00
peelz
4f17a88781
Fix incorrect LuaXXX type converter used in overload disambiguation
2022-08-10 05:36:17 -04:00
peelz
4a6e13a0dc
Refactor LuaDocs generator
2022-08-10 05:36:16 -04:00
peelz
2f5add1999
Don't conflate fields with tables
2022-08-10 05:36:16 -04:00
peelz
1bb7843811
Move docs to luacs-docs/{lua,cs,landing-page}
...
luacs-docs/cs also has a proper http server for testing locally
2022-08-10 05:36:16 -04:00
peelz
d9dc84425d
Make LuaCsSetup easier to integrate into unit tests
2022-08-09 17:50:00 -04:00
peelz
d98daf008e
Add lua types for C# primitives
2022-08-09 17:50:00 -04:00
peelz
08836088fb
Refactor hooking API
...
This completely changes how method patching works under the hood. Unlike
the previous API (`Hook.HookMethod`), the new API (`Hook.Patch`)
generates a Harmony patch method at runtime, using IL generation.
This fixes methods with ByRef (out/ref) parameters getting silently corrupted
due to the ByRef semantics being lost when passed through the `object[] __args`
parameter.
This new API also makes it possible to:
- modify parameters (including ByRef params)
- change the return value to `null` (old API would use `return nil`
for Harmony control flow)
- prevent execution of the original method (and other harmony
patches), independently of modifying the return value
2022-08-09 17:50:00 -04:00
peelz
768abd5ce1
Remove LuaResult
2022-08-09 17:50:00 -04:00
peelz
7ce7e6e763
Support resolving methods with ref/out parameters
2022-08-09 17:50:00 -04:00
EvilFactory
069567c681
LuaCs is now initialized after sub editor screen is first selected, added Game.IsSubEditor, Game.SubEditorScreen and registered editor screens
2022-07-27 20:01:20 -03:00