Exemplo n.º 1
0
        //public ParticleEngine ParticleEngine { get; set; }
        public Zone(Map map, Vector2i id)
        {
            m_id = id;
            m_map = map;
            Walls = new List<Wall>();
            Lights = new List<Light>();
            Trees = new List<Tree>();
            m_wallRenderer = new SegmentRenderer();
            m_lightRenderer = new TriangleFanRenderer();
            Floor = new Floor(this);
            m_treeRenderer = new SpriteRenderer(TreesSprites.Instance);

            Generate();
        }
Exemplo n.º 2
0
 public SegmentInstance(SegmentRenderer renderer)
 {
     m_renderer = renderer;
 }