Ejemplo n.º 1
0
 private static void OnConstructed(object sender, ConstructionFinishEventArgs e)
 {
     s_server.AvatarManager.SaveAvatar(s_client.Avatar);
 }
Ejemplo n.º 2
0
 private void ConstructEnded()
 {
     var args = new ConstructionFinishEventArgs() { Building = this, EndTime = DateTime.UtcNow, WasEnded = true };
     ConstructionEndSecounds = 0;
     OnConstructionFinished(args);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }