コード例 #1
0
        public ActiveDisease(IGameController gc, DiseaseDefinitionBase disease, ActiveInjury linkedInjury, DateTime diseaseStartTime)
        {
            _gc               = gc;
            _linkedInjury     = linkedInjury;
            _diseaseStartTime = diseaseStartTime;

            Disease = disease;

            ComputeDisease();
            Refresh(gc.WorldTime.Value);

            Events.NotifyAll(l => l.DiseaseTriggered(disease, linkedInjury, diseaseStartTime));
        }
コード例 #2
0
 public ActiveDisease(IGameController gc, DiseaseDefinitionBase disease, DateTime diseaseStartTime) : this(gc, disease, null, diseaseStartTime)
 {
 }