Пример #1
0
        public static int GetDefaultDrawLayer(ClothingRegion clothingRegion, ClothingLayer clothingLayer)
        {
            switch (clothingRegion)
            {
            case ClothingRegion.Head:
                return(GetDefaultHeadDrawLayer(clothingLayer));

            case ClothingRegion.Accessory:
                return(40);

            case ClothingRegion.Hands:
                return(25);

            case ClothingRegion.Chest:
                return(GetDefaultChestDrawLayer(clothingLayer));

            case ClothingRegion.Legs:
                return(GetDefaultLegsDrawLayer(clothingLayer));

            case ClothingRegion.Feet:
                return(GetDefaultFeetDrawLayer(clothingLayer));

            default:
                return(60);
            }
        }
Пример #2
0
 //public ClothingLayer Layer = ClothingLayer.Outer;
 //public ClothingBodyPart BodyPart = ClothingBodyPart.Torso;
 //public Clothing() : base() { }
 //public Clothing(String Short, String Long) : base(Short, Long) { }
 public static RMUD.MudObject Create(String Short, ClothingLayer Layer, ClothingBodyPart BodyPart)
 {
     var r = new RMUD.MudObject(Short, "This is a generic " + Short + ". Layer: " + Layer + " BodyPart: " + BodyPart);
     r.SetProperty("clothing layer", Layer);
     r.SetProperty("clothing part", BodyPart);
     r.SetProperty("wearable?", true);
     return r;
 }
Пример #3
0
        public static RMUD.MudObject Create(String Short, ClothingLayer Layer, ClothingBodyPart BodyPart)
        {
            var r = new RMUD.MudObject(Short, "This is a generic " + Short + ". Layer: " + Layer + " BodyPart: " + BodyPart);

            r.SetProperty("clothing layer", Layer);
            r.SetProperty("clothing part", BodyPart);
            r.SetProperty("wearable?", true);
            return(r);
        }
Пример #4
0
        public static int GetDefaultHeadDrawLayer(ClothingLayer clothingLayer)
        {
            switch (clothingLayer)
            {
            case ClothingLayer.Base:
                return(41);

            case ClothingLayer.Mid:
                return(42);

            default:
                return(60);
            }
        }
Пример #5
0
        private static void Prefix(PlayerManager __instance, GearItem gi, ClothingLayer layerToPutOn)
        {
            //Logger.Log("Clothing Layer {0}", layerToPutOn);
            if (gi?.m_ClothingItem is null || layerToPutOn == ClothingLayer.NumLayers)
            {
                return;
            }
            ClothingRegion region     = gi.m_ClothingItem.m_Region;
            GearItem       itemInSlot = __instance.GetClothingInSlot(region, layerToPutOn);

            if (itemInSlot)
            {
                __instance.TakeOffClothingItem(itemInSlot);
            }
        }
Пример #6
0
        public static int GetDefaultFeetDrawLayer(ClothingLayer clothingLayer)
        {
            switch (clothingLayer)
            {
            case ClothingLayer.Base:
                return(5);

            case ClothingLayer.Mid:
                return(6);

            case ClothingLayer.Top:
                return(13);

            default:
                return(60);
            }
        }
Пример #7
0
        public static int GetDefaultLegsDrawLayer(ClothingLayer clothingLayer)
        {
            switch (clothingLayer)
            {
            case ClothingLayer.Base:
                return(1);

            case ClothingLayer.Mid:
                return(2);

            case ClothingLayer.Top:
                return(15);

            case ClothingLayer.Top2:
                return(16);

            default:
                return(60);
            }
        }
Пример #8
0
        public static int GetDefaultChestDrawLayer(ClothingLayer clothingLayer)
        {
            switch (clothingLayer)
            {
            case ClothingLayer.Base:
                return(21);

            case ClothingLayer.Mid:
                return(22);

            case ClothingLayer.Top:
                return(26);

            case ClothingLayer.Top2:
                return(27);

            default:
                return(60);
            }
        }
Пример #9
0
 public static void Wear(this MudObject NPC, String Short, ClothingLayer Layer, ClothingBodyPart BodyPart)
 {
     Wear(NPC, ClothingFactory.Create(Short, Layer, BodyPart));
 }
Пример #10
0
 public static int MaybeGetDefaultDrawLayer(int drawLayer, ClothingRegion clothingRegion, ClothingLayer clothingLayer)
 {
     if (drawLayer > 0)
     {
         return(drawLayer);
     }
     else
     {
         return(GetDefaultDrawLayer(clothingRegion, clothingLayer));
     }
 }
Пример #11
0
 public static void Wear(this NPC NPC, String Short, ClothingLayer Layer, ClothingBodyPart BodyPart)
 {
     Wear(NPC, Clothing.Create(Short, Layer, BodyPart));
 }
Пример #12
0
 public static void Clothing(this RMUD.MudObject MudObject, ClothingLayer Layer, ClothingBodyPart BodyPart)
 {
     MudObject.SetProperty("clothing layer", Layer);
     MudObject.SetProperty("clothing part", BodyPart);
     MudObject.SetProperty("wearable?", true);
 }