예제 #1
0
        //public List<(string, WorldMapPoint)> Connections { get; private set; } = new List<(string, WorldMapPoint)>();

        public WorldMapPoint(BoneIter boneIter, Matrix4 parentMatrix, string[] attributes, WorldMapRoute route = null)
            : base(Vector4.Transform(new Vector4(boneIter.Current.Position.ToVec3(), 1), parentMatrix).Xyz.ToSceneScale())
        {
            BoneName        = boneIter.Current.Name;
            this.attributes = attributes;
            Route           = route;
            if (boneIter.PeekNext()?.ParentIndex == boneIter.CurrentBoneIndex && (boneIter.PeekNext()?.Name.StartsWith("cob") ?? false))
            {
                Matrix4 boneMatrix = boneIter.Current.CalculateRelativeMatrix() * parentMatrix;
                boneIter.MoveNext();
                Cob = new WorldMapCob(boneIter, boneMatrix);
            }
        }
예제 #2
0
 public GeneralUIContainer(WorldMapCob obj, EditorSceneBase scene)
 {
     this.obj   = obj;
     this.scene = scene;
 }