Esempio n. 1
0
        private void UpdateSpoData()
        {
            ctbX.Text = $"{Position.x:F3}";
            ctbY.Text = $"{Position.y:F3}";
            ctbZ.Text = $"{Position.z:F3}";

            treeManager.InvalidateAll();
            int nChildren =
                Acp.XHIE_fn_lEnumSpoChildren(SuperObject, treeManager.GetEnumNonGroupedSpoCallback(parentNode));

            treeManager.RemoveInvalidated();

            parentNode.Text = $"Children ({nChildren})";
            parentNode.Expand();
        }
Esempio n. 2
0
        private void UpdateWorldTree()
        {
            treeManager.InvalidateAll();

            ObjectTreeManager.GetCallbackDelegate getCallbackMethod = treeManager.GetEnumCallback(GroupSpo);

            int nActive = Acp.XHIE_fn_lEnumSpoChildren(*(SuperObject **)Offsets.ActiveDynamicWorld,
                                                       getCallbackMethod(activeWorld));
            int nInactive = Acp.XHIE_fn_lEnumSpoChildren(*(SuperObject **)Offsets.InactiveDynamicWorld,
                                                         getCallbackMethod(inactiveWorld));
            int nSectors = Acp.XHIE_fn_lEnumSpoChildren(*(SuperObject **)Offsets.FatherSector, treeManager.GetEnumNonGroupedSpoCallback(fatherSector));

            treeManager.RemoveInvalidated(GroupSpo);

            ChildStatusText = $"Active: {nActive} objects, Inactive: {nInactive} objects, Sectors: {nSectors} objects.";
            MainFrame.Instance.SetStatus(this, ChildStatusText);
        }