aboutsummaryrefslogtreecommitdiff
path: root/source/game/components/skybox/SkyboxRotateZ.cs
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/components/skybox/SkyboxRotateZ.cs')
-rw-r--r--source/game/components/skybox/SkyboxRotateZ.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/game/components/skybox/SkyboxRotateZ.cs b/source/game/components/skybox/SkyboxRotateZ.cs
new file mode 100644
index 0000000..151aec9
--- /dev/null
+++ b/source/game/components/skybox/SkyboxRotateZ.cs
@@ -0,0 +1,17 @@
+namespace Celesteia.Game.Components.Skybox {
+ public class SkyboxRotateZ {
+ public float _magnitude = 1f;
+ // Amount to rotate by.
+ public float Magnitude { get { return _magnitude; } }
+
+ // Current rotation.
+ public float Current = 0f;
+
+ public SkyboxRotateZ(float magnitude) {
+ _magnitude = magnitude;
+
+ // Offset the starting rotation.
+ Current = _magnitude * 256f;
+ }
+ }
+} \ No newline at end of file