protected void TriggerPreUpdatePropertyAction(ref EntityProperties entprop) { PreUpdatePropertyAction actions = OnPreUpdateProperty; if (actions != null) { actions(ref entprop); } }
public void RegisterPreUpdatePropertyAction(string identifier, PreUpdatePropertyAction actn) { lock (RegisteredPreUpdatePropertyActions) { // Clean out any existing action UnRegisterPreUpdatePropertyAction(identifier); RegisteredPreUpdatePropertyActions[identifier] = actn; OnPreUpdateProperty += actn; } DetailLog("{0},BSPhysObject.RegisterPreUpdatePropertyAction,id={1}", LocalID, identifier); }