Example #1
0
    public void StartDeveloping(string Name)
    {
        CurrentDevelopingProduct      = new DevelopingProduct();
        CurrentDevelopingProduct.Name = Name;
        CurrentDevelopingProduct.CopyObjectInfo(resultObject);
        CurrentDevelopingProduct.CompletedPoint = 0;
        CurrentDevelopingProduct.StartTime      = TimeManagerCall.TimeValue;

        resultObject = new ResultObject();
    }
Example #2
0
    public void EndDeveloping()
    {
        if (CurrentDevelopingProduct.CompletedPoint > CurrentDevelopingProduct.ObjectInfo.RequiredPoint)
        {
            CurrentDevelopingProduct.ObjectInfo.Attractiveness.TotalPoint += CurrentDevelopingProduct.ObjectInfo.Attractiveness.PerfectionPoint;

            GoodsRecipeCall.MakeCustomRecipe(CurrentDevelopingProduct, CompanyValueCall.CompanyName);
        }

        CurrentDevelopingProduct = null;
    }