Exemplo n.º 1
0
    protected PoiSettings createPoiSettings(PoiType type, string path)
    {
        var ps = new PoiSettings();

        ps.Type   = type;
        ps.Sprite = SpriteRepository.GetSpriteFromSheet(path);
        return(ps);
    }
Exemplo n.º 2
0
 public DrawSystem(SpriteRepository spriteRepository,
                   SpriteBatch spriteBatch,
                   FontRepository fontRepository,
                   [Hint(typeof(IInputService))] XInputService input)
 {
     this.spriteRepository = spriteRepository;
     this.spriteBatch      = spriteBatch;
     this.fontRepository   = fontRepository;
     this.input            = input;
 }
Exemplo n.º 3
0
    protected PoiSettings createPoiSettings(PoiType type, string path)
    {
        //if (AppState.Instance.Config.InitalView.Mapzen.Contains(type.ToString()))
        //    {
        var ps = new PoiSettings();

        ps.Type   = type;
        ps.Sprite = SpriteRepository.GetSpriteFromSheet(path);
        return(ps);
        //}
        //return null;
    }
Exemplo n.º 4
0
 public void Awake()
 {
     if (instance == null)
     {
         instance     = this;
         achievements = new List <Achievement> ();
         ballMaterial = MaterialsRepository.Get("green");
         SkinsRepository.addSkin(new Skin(SpriteRepository.Get("green"), ballMaterial));
         addAchievements();
         DontDestroyOnLoad(this.gameObject);
     }
 }
Exemplo n.º 5
0
 public Texture2DProcessor(GraphicsDevice graphicsDevice,
                           SpriteRepository spriteRepository)
 {
     this.graphicsDevice   = graphicsDevice;
     this.spriteRepository = spriteRepository;
 }
Exemplo n.º 6
0
 public SpritesheetProcessor(SpriteRepository spriteRepository)
 {
     this.spriteRepository = spriteRepository;
 }