Initial Commit
This commit is contained in:
43
2DGAMELIB/_2DGAMELIB/Mots.cs
Normal file
43
2DGAMELIB/_2DGAMELIB/Mots.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace _2DGAMELIB;
|
||||
|
||||
public class Mots
|
||||
{
|
||||
public Dictionary<string, Mot> ms;
|
||||
|
||||
public Mot this[string Name]
|
||||
{
|
||||
get
|
||||
{
|
||||
return ms[Name];
|
||||
}
|
||||
set
|
||||
{
|
||||
ms[Name] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public Mots()
|
||||
{
|
||||
ms = new Dictionary<string, Mot>();
|
||||
}
|
||||
|
||||
public void Add(string Name, Mot Mot)
|
||||
{
|
||||
ms.Add(Name, Mot);
|
||||
}
|
||||
|
||||
public void Rem(string Name)
|
||||
{
|
||||
ms.Remove(Name);
|
||||
}
|
||||
|
||||
public void Drive(FPS FPS)
|
||||
{
|
||||
foreach (Mot value in ms.Values)
|
||||
{
|
||||
value.GetValue(FPS);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user