Add initial resource and presenter classes for game entities and effects
This commit is contained in:
17
Code/Extensions/Vector3Extensions.cs
Normal file
17
Code/Extensions/Vector3Extensions.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using GameCoreMath = GameCore.Math.Vector3;
|
||||
using GodotMath = Godot.Vector3;
|
||||
|
||||
namespace CryptonymThunder.Code.Extensions;
|
||||
|
||||
public static class Vector3Extensions
|
||||
{
|
||||
public static GodotMath ToGodot(this GameCoreMath v)
|
||||
{
|
||||
return new GodotMath(v.X, v.Y, v.Z);
|
||||
}
|
||||
|
||||
public static GameCoreMath ToGameCore(this GodotMath v)
|
||||
{
|
||||
return new GameCoreMath(v.X, v.Y, v.Z);
|
||||
}
|
||||
}
|
||||
1
Code/Extensions/Vector3Extensions.cs.uid
Normal file
1
Code/Extensions/Vector3Extensions.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dqwjwnmn7x6ny
|
||||
Reference in New Issue
Block a user