예제 #1
0
파일: Thing.cs 프로젝트: arty1901/WheelMUD
        /// <summary>Determine whether this Thing can stack with the specified Thing.</summary>
        /// <param name="thing">The thing to check for stacking ability.</param>
        /// <returns>True if the Things can become a single stack, else false.</returns>
        public bool CanStack(Thing thing)
        {
            if (TemplateId == thing.TemplateId && Name == thing.Name && FullName == thing.FullName)
            {
                // TODO: Better logic to see differing properties on housed behaviors, etc...
                if (Behaviors.CanStack(thing.Behaviors))
                {
                    // throw new NotImplementedException();
                }
            }

            return(false);
        }