Beispiel #1
0
 public CreateTileTask(TileProducer owner, int level, int tx, int ty, List <TileStorage.Slot> slot)
 {
     m_owner = owner;
     m_level = level;
     m_tx    = tx;
     m_ty    = ty;
     m_slot  = slot;
 }
		public CreateTileTask(TileProducer owner, int level, int tx, int ty, List<TileStorage.Slot> slot)
		{
			m_owner = owner;
			m_level = level;
			m_tx = tx;
			m_ty = ty;
			m_slot = slot;

		}
Beispiel #3
0
        public override void Start()
        {
            base.Start();

            m_producer    = GetComponent <TileProducer>();
            m_terrainNode = m_terrainNodeGO.GetComponent <TerrainNode>();
            m_uniforms    = new Uniforms(m_producer.GetName());
            m_tileFilters = GetComponents <TileFilter>();
        }
Beispiel #4
0
 public void InsertProducer(int id, TileProducer producer)
 {
     if (m_producers.ContainsKey(id))
     {
         Debug.Log("Proland::TileCache::InsertProducer - Producer id already inserted");
     }
     else
     {
         m_producers.Add(id, producer);
     }
 }
Beispiel #5
0
 public void InsertProducer(int id, TileProducer producer)
 {
     if(m_producers.ContainsKey(id)) {
         Debug.Log("Proland::TileCache::InsertProducer - Producer id already inserted");
     }
     else {
         m_producers.Add(id, producer);
     }
 }