예제 #1
0
 private static void OnConstructed(object sender, ConstructionFinishEventArgs e)
 {
     s_server.AvatarManager.SaveAvatar(s_client.Avatar);
 }
예제 #2
0
 private void ConstructEnded()
 {
     var args = new ConstructionFinishEventArgs() { Building = this, EndTime = DateTime.UtcNow, WasEnded = true };
     ConstructionEndSecounds = 0;
     OnConstructionFinished(args);
 }
예제 #3
0
 /// <summary>
 /// Use this method to trigger the <see cref="ConstructionFinished"/> event/
 /// </summary>
 /// <param name="e">The arguments</param>
 protected virtual void OnConstructionFinished(ConstructionFinishEventArgs e)
 {
     if (ConstructionFinished != null)
         ConstructionFinished(this, e);
 }
예제 #4
0
 private void ConstructFinished()
 {
     var args = new ConstructionFinishEventArgs() { Building = this, EndTime = ConstructionEnd };
     Level++;
     ConstructionEndSecounds = 0;
     OnConstructionFinished(args);
     //Console.WriteLine("Construction of {0} ended.", Data.Name);
 }