Changed class names to be more understandable. Separate some initializes from Character class to CharacterFluidSystem

This commit is contained in:
Absolutely disgusting
2026-03-14 13:00:40 +04:00
parent b781f689ac
commit fc88cf2a9c
656 changed files with 6604 additions and 6672 deletions

View File

@@ -0,0 +1,46 @@
using System.Collections.Generic;
namespace _2DGAMELIB
{
public class Motions
{
public Dictionary<string, Motion> ms;
public Motion this[string Name]
{
get
{
return ms[Name];
}
set
{
ms[Name] = value;
}
}
public Motions()
{
ms = new Dictionary<string, Motion>();
}
public void Add(string Name, Motion Mot)
{
//Broke some times here when adding existing keys
//ms.Add(Name, Mot);
ms.TryAdd(Name, Mot);
}
public void Rem(string Name)
{
ms.Remove(Name);
}
public void Drive(FPS FPS)
{
foreach (Motion value in ms.Values)
{
value.GetValue(FPS);
}
}
}
}