public virtual void LogEvent(hostChar ch, campCampaign camp, string n, string nl, string desc) { hostUserEvent ev = new hostUserEvent(n, nl, this, ch, camp, desc); ev.DateOccured = DateTime.Now; //this.Events.Add(ev); }
public hostUserEvent(string n, string nl, hostUser usr, hostChar ch, campCampaign camp, string desc) : this(n, nl) { this.Character = ch; this.Campaign = camp; this.Description = desc; this.User = usr; }
public hostCharStat(sysBaseStatistic s, hostChar c, int v) { this.stat = s; if (v == 0) { v = s.defvalue; } this.value = v; character = c; if (this.value < s.min || this.value > s.max) { throw new ApplicationException("System Stat out of range," + s.LongName + " =" + v.ToString()); } }