Пример #1
0
        public override int CanProcessCommand(GotoCommand command)
        {
            if (command.toManagedObject.isValid)
            {
                return(10);
            }

            return(base.CanProcessCommand(command));
        }
Пример #2
0
        public override void RestoreCommand(GotoCommand command)
        {
            if (command.toManagedObject.isValid)
            {
                m_ObjectsControl.Select(command.toManagedObject.packed);
            }

            base.RestoreCommand(command);
        }
Пример #3
0
        public override int CanProcessCommand(GotoCommand command)
        {
            if (command.toStaticField.isValid || command.toManagedType.isValid)
            {
                return(10);
            }

            return(base.CanProcessCommand(command));
        }
Пример #4
0
        public override int CanProcessCommand(GotoCommand command)
        {
            if (command.toGCHandle.isValid)
            {
                return(10);
            }

            return(base.CanProcessCommand(command));
        }
Пример #5
0
        public override void RestoreCommand(GotoCommand command)
        {
            if (command.toNativeObject.isValid)
            {
                m_NativeObjectsControl.Select(command.toNativeObject.packed);
                return;
            }

            base.RestoreCommand(command);
        }
Пример #6
0
        public override void RestoreCommand(GotoCommand command)
        {
            if (command.toStaticField.isValid)
            {
                m_StaticFieldsControl.Select(command.toStaticField.classType.packed);
                return;
            }

            if (command.toManagedType.isValid)
            {
                m_StaticFieldsControl.Select(command.toManagedType.packed);
            }
        }
Пример #7
0
        public void Add(GotoCommand from, GotoCommand to)
        {
            while (m_Commands.Count > m_Index && m_Index >= 0)
            {
                m_Commands.RemoveAt(m_Commands.Count - 1);
            }

            var e = new Entry();

            e.from = from;
            e.to   = to;
            m_Commands.Add(e);
            m_Index++;
        }
Пример #8
0
 public override void RestoreCommand(GotoCommand command)
 {
     m_HandlesControl.Select(command.toGCHandle.packed);
 }
Пример #9
0
 protected void Goto(GotoCommand command)
 {
     window.OnGoto(command);
 }
Пример #10
0
 public virtual void RestoreCommand(GotoCommand command)
 {
 }
Пример #11
0
 public virtual int CanProcessCommand(GotoCommand command)
 {
     return(0);
 }