Пример #1
0
        protected override void OnRestoreProps(ITaskProps props)
        {
            base.OnRestoreProps(props);

            var subTreeProps = ((SubTreeTaskProps)props).SubTree;

            subTree.RestoreSnapshot(subTreeProps);
        }
Пример #2
0
        protected Task(BehaviorTree tree, Task parentTask, uint id, ITaskDesc description, ITaskProps props)
        {
            this.tree        = tree;
            this.parentTask  = parentTask;
            this.id          = id;
            this.description = description;
            this.props       = props;

            LogDebug("[{0}] is created", this);
        }
Пример #3
0
        protected override void OnRestoreProps(ITaskProps props)
        {
            base.OnRestoreProps(props);

            this.props = (WaitTimerTaskProps)props;

            if (this.props.TimerId > 0)
            {
                timer = FindTimer(this.props.TimerId);
            }
            else
            {
                timer = null;
            }
        }
Пример #4
0
 protected CompositeTask(BehaviorTree tree, Task parentTask, uint id, ICompositeTaskDesc description, ITaskProps props = null)
     : base(tree, parentTask, id, description, props)
 {
 }
Пример #5
0
        protected override void OnRestoreProps(ITaskProps props)
        {
            base.OnRestoreProps(props);

            this.props = (RepeaterTaskProps)props;
        }
Пример #6
0
        protected override void OnRestoreProps(ITaskProps props)
        {
            base.OnRestoreProps(props);

            this.props = (WaitEventTaskProps)props;
        }
Пример #7
0
 protected virtual void OnRestoreProps(ITaskProps props)
 {
     this.props = props;
 }
Пример #8
0
 protected ParallelTask(BehaviorTree tree, Task parentTask, uint id, ParallelTaskDesc description, ITaskProps props)
     : base(tree, parentTask, id, description, props)
 {
 }
Пример #9
0
 protected DecoratorTask(BehaviorTree tree, Task parentTask, uint id, IDecoratorTaskDesc description, ITaskProps props = null)
     : base(tree, parentTask, id, description, props)
 {
 }
Пример #10
0
        protected override void OnRestoreProps(ITaskProps props)
        {
            base.OnRestoreProps(props);

            this.props = (SequenceTaskProps)props;
        }