Simon Lübeß
86139f870c
ScriptCore: Cleanup and refactoring
...
A bit of nullable stuff
2024-01-07 23:56:44 +01:00
Simon Lübeß
bfc9d4a0a5
Save and Load script data from files
2024-01-07 18:35:33 +01:00
Simon Lübeß
a4c311c2e4
Implemented Entity and Component Drop-Targets and added Name property for entities
...
- Also fixed non generic GetComponent
- Use UUID as Drag-Drop value for entities
- Removed unused methods from ComponentEditWindow
- Started a marginally type-safe version of ImGui.Payload
2023-12-26 02:00:44 +01:00
Simon Lübeß
2f86f751a4
Serialize Enums (and maybe Entitiy/Component refs)
2023-12-25 21:46:19 +01:00
Simon Lübeß
b884ee8303
Moved Components to their respective namespaces
2023-12-15 14:53:10 +01:00
Simon Lübeß
a129156641
Documentation
2023-12-13 14:45:33 +01:00
Simon Lübeß
4a2635a8c3
ScriptCore: Moved Component + Doc
2023-12-13 14:00:27 +01:00
Simon Lübeß
2a4eac814b
ScriptGlue: Changed signature of Entity_GetScriptInstance
2023-11-18 01:59:10 +01:00
Simon Lübeß
446dc2ca2a
Scripting: Basic copying of entities during runtime + Reference Components using UUID
2023-09-21 14:23:00 +02:00
Simon Lübeß
754c149493
Entity Creation and Destruction from scripts
...
- ScriptEngine: Allow destroying scripts during runtime
- Scripting:
- Create new entities using Constructors
- Added Destroy functions for Entities
- Added SetScript/RemoveScript functions for Entities
- Allow adding multiple components at once
- Added Is-Method
- Mono Wrapper: Added Array-Functions
- WorldEnumerator: Fixed crash due to dangling list pointer after entity creation
- Scene:
- Basic create Rigidbodies during runtime
- Start of entity copying (For runtime use)
- Added DestroyEntityDeferred
- SceneSerializer:
- Added option to assign new IDs to entities
2023-09-15 23:22:27 +02:00
Simon Lübeß
aafcc41286
Invoke on collision enter + start of attach child colliders to rigidbody
...
+ Changed default Namespace of ScriptCore to GlitchyEngine
+ Implicit Casts float2 <-> b2Vec2
+ Entity constructor internal
+ Renamed RigidBody2D to Rigidbody2D (notice the B)
+ Basic Debug Draw actual 2D Colliders
+ Added Entity::GetParentWithComponent
2023-08-10 19:55:45 +02:00
Simon Lübeß
3e55a1614a
Shader like vectors for C# Scripting
2023-07-20 17:48:28 +02:00
Simon Lübeß
e8505f6bdb
Scripting: FindEntityWithName and get script instance
...
+ Some C# UUID stuff
+ Added some Mono functions
+ ScriptEngine:
+ ID -> ScriptInstance map in ScriptEngine
+ GetManagedInstance
+ Fixed Scene not visible after loading a new scene
+ Renamed OnViewportResize to SetViewportSize for Scene and SceneRenderer
2023-07-17 20:27:18 +02:00
Simon Lübeß
4fd9a924a0
Added basic component access in Scripts
2023-03-29 16:32:46 +02:00
Simon Lübeß
e60d74fccd
Basic entity scripting
2023-03-29 13:33:34 +02:00