Example #1
0
 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];
 }
Example #2
0
        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);
        }
Example #3
0
 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;
 }