Commit graph

19 commits

Author SHA1 Message Date
Janis 0987e57963 renamed field getters, unsafe cast
- renamed field getter functions to just the field, and field_mut for &mut
getters
- made casting `unsafe` to make sure it explicitly is checked each time
- fixed injected types being NonNull<T>
2023-04-22 02:13:14 +02:00
Janis ab27f8ba82 smol 2023-04-22 01:19:31 +02:00
Janis f2366991f1 various fixes
- only generate at most 256 variants for an enum
- only generate methods trait for classes, also depend on AsUObject trait
- declare func variable in methods as mut
- swap out params
2023-04-22 01:01:00 +02:00
Janis 3f16ac51c6 deriving eq and partial eq, and clone for structs
- public access to tuple field
- casting in AsPtr fix
- generate_find_object relies on external implementation
2023-04-21 23:01:48 +02:00
Janis b1945fda35 move casting of types to into process_event function 2023-04-21 22:03:25 +02:00
Janis c8702b3322 create sdk dir 2023-04-21 22:03:17 +02:00
Janis 93d42f6be7 correct casting 2023-04-21 22:03:11 +02:00
Janis f8096cbba5 suppress format warnings 2023-04-21 22:02:39 +02:00
Janis efcc14fc1c removed underscore from field and method traits because rust doesnt like it 2023-04-21 22:02:21 +02:00
Janis 903d05911a static class returns option<class>, not class 2023-04-21 22:01:46 +02:00
Janis 8c195f224b impl sync and send for types (🥴) as well as "AsObject" for casting for objects 2023-04-21 22:01:11 +02:00
Janis ed5c4a5702 dont derive copy from unsafecell type 2023-04-21 22:00:48 +02:00
Janis df079b7af6 enums only as repr(u8) 2023-04-21 22:00:35 +02:00
Janis 30cd320e66 formatting fixes 2023-04-21 19:07:07 +02:00
Janis 221ad25ff6 enum generation 2023-04-21 18:43:04 +02:00
Janis b51164304f renamed injected types with U/F/E/A prefix 2023-04-21 18:40:39 +02:00
Janis 8d2f0ab142 UEnum, UFunction and UProperty injection 2023-04-21 17:58:49 +02:00
Janis 6ea9e81e29 representing Objects as transparent ´NonNull<UnsafeCell<u8>>´ 2023-04-21 17:33:09 +02:00
Janis 32bcc30b96 rust generation 2023-04-21 17:21:07 +02:00