Example #1
0
        protected void TriggerPreUpdatePropertyAction(ref EntityProperties entprop)
        {
            PreUpdatePropertyAction actions = OnPreUpdateProperty;

            if (actions != null)
            {
                actions(ref entprop);
            }
        }
Example #2
0
 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);
 }