Modding:Events: Difference between revisions

2 bytes removed ,  21:47, 21 July 2020
m
creating -> create
(Update for 200.43 MinEvent Handling, add Custom section)
m (creating -> create)
Line 182: Line 182:


// A static helper method to fire our event on a GameObject.
// A static helper method to fire our event on a GameObject.
// If it's a high-frequency event this should implement event pooling, rather than creating a new MyCustomMinEvent each time.
// If it's a high-frequency event this should implement event pooling, rather than create a new MyCustomMinEvent each time.
public static void Send(GameObject Object) {
public static void Send(GameObject Object) {
if (Object.WantEvent(MyCustomMinEvent.ID, MinEvent.CascadeLevel)) {
if (Object.WantEvent(MyCustomMinEvent.ID, MinEvent.CascadeLevel)) {