Ejemplo n.º 1
0
    public IWorldState Clone()
    {
        var newInstance = new ExampleWorldState(owner);

        newInstance.RawMeat           = this.RawMeat;
        newInstance.GrilledMeat       = this.GrilledMeat;
        newInstance.Bread             = this.Bread;
        newInstance.Lettuce           = this.Lettuce;
        newInstance.CutLettuce        = this.CutLettuce;
        newInstance.IsHasPlate        = this.IsHasPlate;
        newInstance.IsHasPan          = this.IsHasPan;
        newInstance.IsHasCuttingBoard = this.IsHasCuttingBoard;
        newInstance.MoveTarget        = this.MoveTarget;
        // newInstance.CarryTarget = this.CarryTarget;
        // newInstance.PutTarget = this.PutTarget;
        // newInstance.CutTarget = this.CutTarget;
        // newInstance.GrillTarget = this.GrillTarget;
        // newInstance.SearchTarget = this.SearchTarget;
        return(newInstance);
    }
Ejemplo n.º 2
0
 protected override void OnStart()
 {
     rootTask   = ExampleDomain.Instance.GetTask(DefinedTaskEnum.PrepareMeatTask);
     worldState = new ExampleWorldState(this);
     base.OnStart();
 }