Beispiel #1
0
        public SplitBoundsBranch(string name, SplittedRegion splittedRegion, Vector3 pos, RotationData data, GroupBranch group) : base (name, pos, data, group)
        {
            BaseTree staticBranch = new BaseTree("Static", new Vector3(), this, NodeConfig.StaticAndPropogate);
            TracksLeaf = new BaseTree("Tracks", new Vector3(), staticBranch, NodeConfig.StaticAndPropogate);
            BlocksLeaf = new BaseTree("Blocks", new Vector3(), staticBranch, NodeConfig.StaticAndPropogate);
            OthersLeaf = new BaseTree("Others", new Vector3(), this, NodeConfig.Dynamic);

            SplittedRegion = splittedRegion;
            Group = group;
            group.AddSplitBoundsBranch(this);
            Name = name;
        }
Beispiel #2
0
        private GroupBranch(Vector3 pos, Data groupData, RotationData rotationData, LevelTree level)
            : base(groupData.Group.Id, pos, rotationData, level)
        {
            Level = level;
            GroupData = groupData;
            ParticlesLeaf = new BaseTree("Particles", new Vector3(), this, NodeConfig.Dynamic);
            DoodadsLeaf = new BaseTree("Doodads", new Vector3(), this, NodeConfig.Dynamic);
            level.AddGroupBranch(this);

            foreach (SplitTrack track in Tracks)
            {
                track.OnAttachedToGroupBranch(this);
            }
        }
Beispiel #3
0
 protected RotateableBranch(string name, Vector3 pos, RotationData data, BaseTree parent) : base(name, pos, parent, NodeConfig.Dynamic)
 {
     Data = data;
 }
Beispiel #4
0
 public BaseTree(string name, Vector3 position, BaseTree parent, NodeConfig nodeConfig)
     : this(name, position, parent.Node.transform, nodeConfig)
 {
     Parent = parent;
     parent._children.Add(this);
 }