CM3D2.MaidFiddler.Hook.MaidStatusChangeHooks.OnStatusChanged C# (CSharp) Method

OnStatusChanged() public static method

public static OnStatusChanged ( int tag, Maid &currentMaid ) : bool
tag int
currentMaid Maid
return bool
        public static bool OnStatusChanged(int tag, ref Maid currentMaid)
        {
            StatusEventArgs args = new StatusEventArgs
            {
                Tag = (MaidChangeType) tag,
                CallerMaid = currentMaid,
                BlockAssignment = false
            };

            StatusChanged?.Invoke(null, args);

            return args.BlockAssignment;
        }