public WarpNode(GDWorldMapScreen scrn, WarpNodeBlueprint bp) : base(scrn, GDConstants.ORDER_MAP_NODE) { Position = new FPoint(bp.X, bp.Y); DrawingBoundingBox = new FSize(DIAMETER, DIAMETER); Blueprint = bp; Target = Levels.WORLDS[bp.TargetWorld]; }
private void AddWarpNode(List <string> methodParameter) { var pos = ExtractVec2fParameter(methodParameter, 0); var target = ExtractGuidParameter(methodParameter, 1); var px = pos.Item1 * _scaleFactor; var py = pos.Item2 * _scaleFactor; var node = new WarpNodeBlueprint(px, py, target); _currentNode = node; _result.WarpNodes.Add(node); }
public WarpGameEndNode(GDWorldMapScreen scrn, WarpNodeBlueprint bp) : base(scrn, GDConstants.ORDER_MAP_NODE) { Position = new FPoint(bp.X, bp.Y); DrawingBoundingBox = new FSize(DIAMETER, DIAMETER); Blueprint = bp; }