예제 #1
0
파일: AGT_Scene.cs 프로젝트: wshanshan/DDD
 public void LoadResources(AGT_SceneLoadDialog dialog_instance, Device device)
 {
     //throw new Exception("The method or operation is not implemented.");
 }
예제 #2
0
        public new void LoadResources(AGT_SceneLoadDialog dialog_instance, Device device)
        {
            lock (this)
            {
                dialog_instance.UpdateStatusBar("Initializing Sprite Manager", 0, 3);
                if (_active_zone_sprites != null)
                {
                    _active_zone_sprites.Dispose();
                }
                if (_waypoint_group_sprites != null)
                {
                    _waypoint_group_sprites.Dispose();
                }
                if (_map_sprites != null)
                {
                    _map_sprites.Dispose();
                }
                if (_pawn_sprites != null)
                {
                    _pawn_sprites.Dispose();
                }

                _active_zone_sprites = new AGT_SpriteManager(device);
                _waypoint_group_sprites = new AGT_SpriteManager(device);
                _map_sprites = new AGT_SpriteManager(device);
               _pawn_sprites = AGT_ImageLibrary.Load(ImageLibraryPath, dialog_instance, device);
                
                dialog_instance.UpdateStatusBar("Loading " + MapFile, 2, 3);
                _playfield_image_id = _map_sprites.AddResource(MapFile, MapFile, 0, 0, 0, false);


                UTM_Mapping.ImageHeight = _map_sprites.GetBitmapHeight(_playfield_image_id);
                UTM_Mapping.ImageWidth = _map_sprites.GetBitmapWidth(_playfield_image_id);


                dialog_instance.UpdateStatusBar("Finished", 3, 3);
            }
        }
예제 #3
0
파일: AGT_Scene.cs 프로젝트: wshanshan/DDD
 public void DialogInitialize(AGT_SceneLoadDialog dialog_instance)
 {
     //throw new Exception("The method or operation is not implemented.");
 }
예제 #4
0
 public new void DialogInitialize(AGT_SceneLoadDialog dialog_instance)
 {
 }