36 lines
886 B
C#
36 lines
886 B
C#
using System.Drawing;
|
|
using System.Numerics;
|
|
|
|
namespace TrianglesToGD
|
|
{
|
|
[Serializable]
|
|
public class Level
|
|
{
|
|
public int id = 0;
|
|
public string name = string.Empty;
|
|
public string description = string.Empty;
|
|
public bool verified = false;
|
|
public bool uploaded = false;
|
|
public int uploadedId = -1;
|
|
public Vector3 editorCameraPos = new();
|
|
public float editorCameraZoom = 35.0f;
|
|
public LevelData data = new();
|
|
}
|
|
|
|
[Serializable]
|
|
public class LevelData
|
|
{
|
|
public Color backgroundColor = Color.FromArgb(90, 90, 255);
|
|
public Color groundColor = Color.FromArgb(60, 60, 200);
|
|
public List<Object> objects = new();
|
|
}
|
|
|
|
[Serializable]
|
|
public class Object
|
|
{
|
|
public int id = -1;
|
|
public Vector2 pos = new();
|
|
public int rotation = 0;
|
|
}
|
|
}
|