예제 #1
0
        public static ItemLocation1 FromSlot(Constants.SlotNumber s)
        {
            ItemLocation1 j = new ItemLocation1();

            j.Type = Constants.ItemLocationType.Slot;
            j.Slot = s;
            return(j);
        }
예제 #2
0
        public static ItemLocation1 FromGround(Location loc)
        {
            ItemLocation1 j = new ItemLocation1();

            j.GroundLocation = loc;
            j.Type           = Constants.ItemLocationType.Ground;

            return(j);
        }
예제 #3
0
        public static ItemLocation1 FromContainer(byte containerSlot, byte containerNumer)
        {
            ItemLocation1 j = new ItemLocation1();

            j.Type           = Constants.ItemLocationType.Container;
            j.ContainerNumer = containerNumer;
            j.ContainerSlot  = containerSlot;

            return(j);
        }