private static void OnConstructed(object sender, ConstructionFinishEventArgs e) { s_server.AvatarManager.SaveAvatar(s_client.Avatar); }
private void ConstructEnded() { var args = new ConstructionFinishEventArgs() { Building = this, EndTime = DateTime.UtcNow, WasEnded = true }; ConstructionEndSecounds = 0; OnConstructionFinished(args); }
/// <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); }
private void ConstructFinished() { var args = new ConstructionFinishEventArgs() { Building = this, EndTime = ConstructionEnd }; Level++; ConstructionEndSecounds = 0; OnConstructionFinished(args); //Console.WriteLine("Construction of {0} ended.", Data.Name); }