protected override void OnRestoreProps(ITaskProps props) { base.OnRestoreProps(props); var subTreeProps = ((SubTreeTaskProps)props).SubTree; subTree.RestoreSnapshot(subTreeProps); }
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); }
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; } }
protected CompositeTask(BehaviorTree tree, Task parentTask, uint id, ICompositeTaskDesc description, ITaskProps props = null) : base(tree, parentTask, id, description, props) { }
protected override void OnRestoreProps(ITaskProps props) { base.OnRestoreProps(props); this.props = (RepeaterTaskProps)props; }
protected override void OnRestoreProps(ITaskProps props) { base.OnRestoreProps(props); this.props = (WaitEventTaskProps)props; }
protected virtual void OnRestoreProps(ITaskProps props) { this.props = props; }
protected ParallelTask(BehaviorTree tree, Task parentTask, uint id, ParallelTaskDesc description, ITaskProps props) : base(tree, parentTask, id, description, props) { }
protected DecoratorTask(BehaviorTree tree, Task parentTask, uint id, IDecoratorTaskDesc description, ITaskProps props = null) : base(tree, parentTask, id, description, props) { }
protected override void OnRestoreProps(ITaskProps props) { base.OnRestoreProps(props); this.props = (SequenceTaskProps)props; }