Readd missing import files

This commit is contained in:
Lucien
2026-05-07 10:14:44 +02:00
parent ecb44e63d8
commit cd608d5796
810 changed files with 263144 additions and 1 deletions
@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wing.Utils;
namespace Wing.Gizmos
{
public enum ESnapType
{
Move,
Rotate,
Scale,
Grid,
Angle,
}
public class SnapFactory : NormalSingleton<SnapFactory>
{
private Dictionary<ESnapType, ISnap> mSnaps = new Dictionary<ESnapType, ISnap>();
public SnapFactory()
{
mSnaps.Add(ESnapType.Move, new MoveSnap());
mSnaps.Add(ESnapType.Rotate, new RotateSnap());
mSnaps.Add(ESnapType.Scale, new ScaleSnap());
mSnaps.Add(ESnapType.Grid, new GridSnap());
mSnaps.Add(ESnapType.Angle, new AngleSnap());
}
public ISnap Get(ESnapType type)
{
return mSnaps[type];
}
}
}