35 lines
875 B
C#
35 lines
875 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using Godot;
|
|
|
|
namespace StarSkyPresenter;
|
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
public class StarConfig
|
|
{
|
|
public string id { get; set; }
|
|
public float x { get; set; }
|
|
public float y { get; set; }
|
|
public float rot { get; set; }
|
|
public float scale { get; set; }
|
|
public string image { get; set; }
|
|
}
|
|
|
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
|
public class StarSceneData
|
|
{
|
|
public float x { get; set; }
|
|
public float y { get; set; }
|
|
public float rot { get; set; }
|
|
public float scale { get; set; }
|
|
}
|
|
|
|
public class Star
|
|
{
|
|
public string Id { get; set; }
|
|
public float X { get; set; }
|
|
public float Y { get; set; }
|
|
public float Rot { get; set; }
|
|
public float Alpha { get; set; } = 0;
|
|
public float Scale { get; set; }
|
|
public Sprite2D Sprite { get; set; }
|
|
} |