Exemple #1
0
 internal MapDrawer(WorldPart entity, WorldLayer layer, Texture2D texture2D, int layerCount, float alpha, float scale, Vector2 offset)
 {
     m_manager = WorldManager.GetInstance();
     m_texture = texture2D;
     m_size = new Point(texture2D.Height, texture2D.Height);
     m_layerCount = layerCount;
     m_mapPart = entity;
     m_srcRect = new Rectangle(0, 0, m_size.X, m_size.Y);
     m_offset = offset;
     m_alpha = alpha;
     m_scale = scale;
     m_layer = layer;
 }
Exemple #2
0
 internal MapDrawer(WorldPart entity, WorldLayer layer, Texture2D texture2D, int layerCount, float alpha, float scale)
     : this(entity, layer, texture2D, layerCount, alpha, scale, new Vector2(0))
 {
 }
Exemple #3
0
 internal MapDrawer(WorldPart entity, WorldLayer layer, Texture2D texture2D, int layerCount, float alpha)
     : this(entity, layer, texture2D, layerCount, alpha, 1f)
 {
 }