Пример #1
0
 public void DMIConstructorTest()
 {
     string icon = Path.Combine("TestFiles","human.dmi");
     string icon_state = string.Empty; // TODO: Initialize to an appropriate value
     DMI target = new DMI(icon);
     testContextInstance.WriteLine("width = {0}, height={1}", target.Width, target.Height);
 }
Пример #2
0
 private void Load(string file)
 {
     if (!dmis.ContainsKey(file))
     {
         dmis[file] = new DMI(file);
     }
 }
Пример #3
0
        public static SpriteBatch GetSpriteBatch(Game game, string icon, string state, Vector2 offset, Direction dir = Direction.SOUTH, uint frame = 0, bool movement = false)
        {
            DMI dmi = GetDMI(icon);

            return(dmi.GetSpriteBatch(state, game, offset, dir, frame, movement));
        }
Пример #4
0
        public static void DrawSpriteBatch(SpriteBatch sb, Game game, string icon, string state, Vector2 offset, Direction dir = Direction.SOUTH, uint frame = 0, bool movement = false)
        {
            DMI dmi = GetDMI(icon);

            dmi.DrawSpriteBatch(sb, state, game, offset, dir, frame, movement);
        }
Пример #5
0
 private void Load(string file)
 {
     if (!dmis.ContainsKey(file))
         dmis[file] = new DMI(file);
 }