Beispiel #1
0
 public static MapObject CreateWoodenStairsTop(string name, Direction portalDir, TileMap Map, float i, float j, float desti, float destj)
 {
     return(new Portal(name, woodenStairsTop, true, i, j, false, new Vector2(10, 10), new Vector2(40, 40), desti, destj, null, portalDir, Map));
 }
Beispiel #2
0
 public Portal(string name, Texture2D texture, bool IsCollision, float i, float j, bool DrawByY, Vector2 colOffset, Vector2 colSize, float portalRow, float portalColumn, Portal Destination, Direction portalDir, TileMap Map)
     : base(name, texture, IsCollision, i, j, DrawByY, colOffset, colSize)
 {
     map             = Map;
     isDrawName      = true;
     portalI         = portalRow;
     portalJ         = portalColumn;
     PortalDirection = portalDir;
     if (Destination != null)
     {
         this.Destination             = Destination;
         this.Destination.Destination = this;
     }
 }