/// <summary> /// Encapsulates the containment relation for easy use by check rules. /// Note that this relation is stricter than the VisibleTo relation. /// </summary> /// <param name="Actor">Reference point object</param> /// <param name="Item">Object to be tested</param> /// <returns></returns> public static CheckResult CheckIsHolding(MudObject Actor, MudObject Item) { if (!MudObject.ObjectContainsObject(Actor, Item)) { MudObject.SendMessage(Actor, "@dont have that"); return(CheckResult.Disallow); } return(CheckResult.Continue); }