示例#1
0
 public override void Expired(PlayerTask playerTask)
 {
     playerTask.GetPlayer.Rank += 21;
     playerTask.GetPlayer.Save();
 }
示例#2
0
 /// <summary> Called if this task exipres. In case we want something special to happen. </summary>
 public virtual void Expired(PlayerTask playerTask)
 {
     return;
 }
示例#3
0
 /// <summary> Available at any time to get the "status" of a task. </summary>
 public virtual string GetStatus(PlayerTask playerTask)
 {
     return("");
 }
示例#4
0
 /// <summary> After the player has interacted with the task's form, the form data is sent here for processing. </summary>
 public abstract void UpdateTask(PlayerTask playerTask, System.Web.Mvc.FormCollection form);
示例#5
0
 /// <summary> Occurs immediately after a task has been created and assigned to a player. This is a good spot to generate more/related tasks (I hope). </summary>
 public virtual void Created(PlayerTask playerTask)
 {
     return;
 }