mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-11-04 12:51:48 +00:00
Improved copying of components
This commit is contained in:
@@ -9,6 +9,13 @@ using Mono;
|
||||
|
||||
namespace GlitchyEngine.World
|
||||
{
|
||||
/// Components that implement this interface provide custom copy logic.
|
||||
interface ICopyComponent<T>
|
||||
{
|
||||
/// Copies the data from source to target.
|
||||
concrete static void Copy(T* source, T* target);
|
||||
}
|
||||
|
||||
[AttributeUsage(.Struct, .ReflectAttribute, ReflectUser=.Methods | .NonStaticFields)]
|
||||
struct ComponentAttribute : Attribute
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user