コード例 #1
0
        private static void AcceptHouseholdCallback(CASPuck ths)
        {
            if (!ths.AllSimsNamed())
            {
                CASController.Singleton.ErrorMsg(CASErrorCode.AllSimsNeedName);
            }
            else
            {
                ICASModel cASModel = Responder.Instance.CASModel;
                if (cASModel.CASMode == CASMode.Full)
                {
                    if (cASModel.HouseholdName == null)
                    {
                        cASModel.HouseholdName = Responder.Instance.CASModel.LastName;
                    }

                    //cASModel.RequestUpdateCurrentSim(true);
                    CASLogic.CASOperationStack.Instance.Push(new UpdateCurrentSimOperationEx(true));

                    cASModel.SetHouseholdStartingFunds();
                    cASModel.RequestClearStack();

                    ths.mGotoCAF = true;
                }
            }
        }