-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComponents.cs
More file actions
39 lines (35 loc) · 1.12 KB
/
Components.cs
File metadata and controls
39 lines (35 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Arch.Samples;
// NOTE: Should this not be a `Vector3` to represent something in 3D space?
// NOTE: Should this even be wrapped in a struct at all? The `Vector` itself is the representation of the point already.
/// <summary>
/// The <see cref="Position"/> struct
/// contains the position of an entity in 3D space.
/// </summary>
public struct Position
{
// TODO: Documentation?
public Vector2 Vec2;
}
// NOTE: Should this not be a `Vector3` to represent something in 3D space?
// NOTE: Should this even be wrapped in a struct at all? The `Vector` itself is the representation of the point already.
/// <summary>
/// The <see cref="Velocity"/> struct
/// contains the velocity of an entity in 3D space.
/// </summary>
public struct Velocity
{
// TODO: Documentation?
public Vector2 Vec2;
}
/// <summary>
/// The <see cref="Sprite"/> struct
/// contains information about an entity's appearance.
/// </summary>
public struct Sprite
{
// TODO: Documentation?
public Texture2D Texture2D;
public Color Color;
}