public RootNode(GDWorldMapScreen scrn, RootNodeBlueprint bp) : base(scrn, GDConstants.ORDER_MAP_NODE) { Position = new FPoint(bp.X, bp.Y); DrawingBoundingBox = new FSize(DIAMETER, DIAMETER); Blueprint = bp; AddOperation(new CyclicLambdaOperation <RootNode>("LevelNode::OrbSpawn", LevelNode.ORB_SPAWN_TIME, false, SpawnOrb)); }
private void AddRootNode(List <string> methodParameter) { var pos = ExtractVec2fParameter(methodParameter, 0); var worldid = ExtractGuidParameter(methodParameter, 1); var px = pos.Item1 * _scaleFactor; var py = pos.Item2 * _scaleFactor; var node = new RootNodeBlueprint(px, py, worldid); _currentNode = node; _result.RootNode = node; }