Exemple #1
0
 public ObjectElement(uint eid, [NotNull] string name, Vector2 position, Vector2 size, AnchorXType anchorX, AnchorYType anchorY, float rotation, bool visible, [NotNull] IComponent[] components, [NotNull] uint[] children)
 {
     Eid        = eid;
     Name       = name;
     Position   = position;
     Size       = size;
     AnchorX    = anchorX;
     AnchorY    = anchorY;
     Rotation   = rotation;
     Visible    = visible;
     Components = components;
     Children   = children;
 }
 private static string ToSerializable(AnchorXType x) => x.ToString().ToLower();