/// <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); } }
/// <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); } }
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); } }
/// <summary> /// Raises the <see cref="LivingCreated"/> event. /// </summary> /// <param name="e"></param> public static void LivingCreatedHandler(LivingEventArg e) { LivingCreated?.Invoke(e.Living, e); }
/// <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); }