Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Time != 0L)
            {
                hash ^= Time.GetHashCode();
            }
            if (cpu_ != null)
            {
                hash ^= Cpu.GetHashCode();
            }
            if (gc_ != null)
            {
                hash ^= Gc.GetHashCode();
            }
            if (thread_ != null)
            {
                hash ^= Thread.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 private void Update()
 {
     //DEBUG
     if (Input.GetKey(KeyCode.LeftControl))
     {
         if (Input.GetKeyDown(KeyCode.A))
         {
             int nextScene = SceneManager.GetActiveScene().buildIndex - 1;
             if (nextScene < 0)
             {
                 nextScene = SceneManager.sceneCountInBuildSettings - 1;
             }
             SceneManager.LoadScene(nextScene);
         }
         if (Input.GetKeyDown(KeyCode.D))
         {
             //int nextScene = (SceneManager.GetActiveScene().buildIndex + 1) % (SceneManager.sceneCountInBuildSettings);
             //SceneManager.LoadScene(nextScene);
             Gc.EndLevel();
         }
         if (Input.GetKeyDown(KeyCode.R))
         {
             SceneManager.LoadScene(SceneManager.GetActiveScene().name);
         }
     }
 }
Exemplo n.º 3
0
        protected void Application_Start()
        {
            Gc.init();
            AreaRegistration.RegisterAllAreas();

            // var config = GlobalConfiguration.Configuration;
            // config.Formatters.JsonFormatter.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;

            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);
        }
Exemplo n.º 4
0
 public void MergeFrom(CLRMetric other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Time != 0L)
     {
         Time = other.Time;
     }
     if (other.cpu_ != null)
     {
         if (cpu_ == null)
         {
             cpu_ = new global::SkyWalking.NetworkProtocol.CPU();
         }
         Cpu.MergeFrom(other.Cpu);
     }
     if (other.gc_ != null)
     {
         if (gc_ == null)
         {
             gc_ = new global::SkyWalking.NetworkProtocol.ClrGC();
         }
         Gc.MergeFrom(other.Gc);
     }
     if (other.thread_ != null)
     {
         if (thread_ == null)
         {
             thread_ = new global::SkyWalking.NetworkProtocol.ClrThread();
         }
         Thread.MergeFrom(other.Thread);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 /// <summary>
 /// Fired when the 'End Turn' button is clicked.
 /// </summary>
 public void EndTurnButton_OnClick()
 {
     Gc.NextPlayer();
     Gc.Gui.CurrentMenu = MenuType.MovePhase;
 }
Exemplo n.º 6
0
 public void init()
 {
     Gc.init(EnumAppType.AppExe);
     db = new BetterlifeNetEntities();
 }
Exemplo n.º 7
0
 public void Dispose()
 {
     // any other managed resource cleanups you can do here
     Gc.SuppressFinalize(this);
 }
 public void Dispose() => Gc.Throw(ref _client);
Exemplo n.º 9
0
 public NoteComponent()
 {
     gc    = new Gc();
     sb    = new Sb();
     layer = 0;
 }