示例#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);
 }
 private void Load(string file)
 {
     if (!dmis.ContainsKey(file))
     {
         dmis[file] = new DMI(file);
     }
 }
        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));
        }
        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);
 }