コード例 #1
0
 public Resident()
 {
     FirstName   = GetRandomFirstName();
     SecondName  = GetRandomSecondName();
     Happiness   = new Happiness(this);
     sess        = Game.CurrentSession;
     _timeOffset = (float)(new System.Random().NextDouble() * 10 - 5);
 }
コード例 #2
0
        public Resident(ResidentData resData)
        {
            FirstName  = resData.FirstName;
            SecondName = resData.SecondName;

            Happiness   = new Happiness(this);
            sess        = Game.CurrentSession;
            _timeOffset = (float)(new System.Random().NextDouble() * 10 - 5);
        }