Esempio n. 1
0
        /// <summary>
        /// Raises the <see cref="LivingModified"/> event.
        /// </summary>
        /// <param name="e"></param>
        public void LivingModifiedHandler(LivingEventArg e)
        {
            EventHandler <LivingEventArg> handler = LivingModified;

            if (handler != null)
            {
                handler(e.Living, e);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Raises the <see cref="LivingCreated"/> event.
        /// </summary>
        /// <param name="e"></param>
        public static void LivingCreatedHandler(LivingEventArg e)
        {
            EventHandler <LivingEventArg> handler = LivingCreated;

            if (handler != null)
            {
                handler(e.Living, e);
            }
        }
Esempio n. 3
0
 private void Living_LivingCreated(object sender, LivingEventArg e)
 {
     if (this.PlayerToJobSystem.ContainsKey(e.Living.PlayerID))
     {
         this.PlayerToJobSystem[e.Living.PlayerID].Idle.Add(e.Living.ID, e.Living);
     }
     else
     {
         this.UnassignedEntities.Add(e.Living.PlayerID, e.Living);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Raises the <see cref="LivingCreated"/> event.
 /// </summary>
 /// <param name="e"></param>
 public static void LivingCreatedHandler(LivingEventArg e)
 {
     LivingCreated?.Invoke(e.Living, e);
 }
Esempio n. 5
0
 /// <summary>
 /// Raises the <see cref="LivingModified"/> event.
 /// </summary>
 /// <param name="e"></param>
 public void LivingModifiedHandler(LivingEventArg e)
 {
     LivingModified?.Invoke(e.Living, e);
 }
 private static void Living_LivingCreated(object sender, LivingEventArg e)
 {
     //e.Living.LivingModified += Living_LivingModified;
     //AdjustBounds(e, false);
 }