wip: Serialization 2
This commit is contained in:
8
Engine.Serialization/DTOs/BehaviourControllerDTO.cs
Normal file
8
Engine.Serialization/DTOs/BehaviourControllerDTO.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Engine.Serialization.DTOs;
|
||||
|
||||
internal record struct BehaviourControllerDTO(
|
||||
string ClassType,
|
||||
List<BehaviourDTO> Behaviours
|
||||
);
|
@@ -1,7 +1,7 @@
|
||||
namespace Engine.Serialization.DTOs;
|
||||
|
||||
internal record struct BehaviourDTO(
|
||||
string ClassName,
|
||||
string ClassType,
|
||||
int Priority,
|
||||
StateEnableDTO StateEnable
|
||||
);
|
||||
|
@@ -1,11 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Engine.Serialization.DTOs;
|
||||
|
||||
internal record struct GameObjectDTO(
|
||||
string ClassType,
|
||||
string Id,
|
||||
string Name,
|
||||
TransformDTO Transform,
|
||||
List<BehaviourDTO> Behaviours,
|
||||
BehaviourControllerDTO BehaviourController,
|
||||
StateEnableDTO StateEnable
|
||||
);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
namespace Engine.Serialization.DTOs;
|
||||
|
||||
internal record struct StateEnableDTO(
|
||||
string ClassName,
|
||||
string ClassType,
|
||||
bool Enabled
|
||||
);
|
||||
|
@@ -3,6 +3,7 @@ using Syntriax.Engine.Core;
|
||||
namespace Engine.Serialization.DTOs;
|
||||
|
||||
internal record struct TransformDTO(
|
||||
string ClassType,
|
||||
string? ParentId,
|
||||
Vector2D Position,
|
||||
Vector2D Scale,
|
||||
|
Reference in New Issue
Block a user