Exemplo n.º 1
0
 public Split(string id, Group group, Vector3 axis, Vector3 pivot, float value, RestrictionType restriction)
 {
     Axis = axis;
     Pivot = pivot;
     Value = value;
     Id = id;
     Group = group;
     Restriction = restriction;
 }
Exemplo n.º 2
0
        private void BuildGroupTree(LevelTree levelTree, Group group)
        {
            GroupBranch.Data groupData = new GroupBranch.Data(group);
            RotateableBranch.RotationData rotationData = new RotateableBranch.RotationData(BlockBounds.Unbounded, false);
            GroupBranch groupBranch = GroupBranch.CreateAndAttachTo(levelTree, groupData, rotationData);

            levelTree.ConnectionResolver.AddConnectionsFromGroup(group);
            //CreateSplitBranches(groupBranch, group);

            _trackBuilder.BuildSplitTracks(groupBranch, group.Tracks);
            _blockBuilder.BuildBlocks(groupBranch, group.SplittedMeshBlocks);

            levelTree.RegisterController(
                CreateJunctionControllers(groupBranch, group.Junctions));
        }
Exemplo n.º 3
0
 public GroupRotationEvent(Group group, Transformation transformation)
 {
     Group = group;
     Transformation = transformation;
 }
Exemplo n.º 4
0
 public BlockRotationEvent(Group group, Transformation transformation, SplittedRegion splittedRegion)
 {
     Group = group;
     Transformation = transformation;
     SplittedRegion = splittedRegion;
 }
Exemplo n.º 5
0
 public SplitAttachment(Group attachedGroup, Reference<Split> split, bool lhs)
 {
     Split = split;
     AttachedGroup = attachedGroup;
     Lhs = lhs;
 }
Exemplo n.º 6
0
 public GroupBranch GetGroupBranch(Group group)
 {
     return _groupBranches[group];
 }
Exemplo n.º 7
0
 public Data(Group group)
 {
     Group = group;
 }