// called by engine bool RaiseEventPlaneRun(IntPtr plane, int reason, ref uint p0, ref uint p1, ref uint p2, ref uint res) { var args = new CritterEventPlaneRunArgs(this, new NpcPlane(plane), reason, p0, p1, p2); if (PlaneRun != null) { PlaneRun(this, args); } if (args.Result.HasValue) { p0 = args.Param0; p1 = args.Param1; p2 = args.Param2; res = (uint)args.Result.Value; return(true); } return(false); }
// called by engine bool RaiseEventPlaneRun(IntPtr plane, int reason, ref uint p0, ref uint p1, ref uint p2, ref uint res) { var args = new CritterEventPlaneRunArgs(this, new NpcPlane(plane), reason, p0, p1, p2); if (PlaneRun != null) PlaneRun(this, args); if (args.Result.HasValue) { p0 = args.Param0; p1 = args.Param1; p2 = args.Param2; res = (uint)args.Result.Value; return true; } return false; }