コード例 #1
0
ファイル: Item.cs プロジェクト: Creative-Person/Ladabot
        public static ItemLocation1 FromSlot(Constants.SlotNumber s)
        {
            ItemLocation1 j = new ItemLocation1();

            j.Type = Constants.ItemLocationType.Slot;
            j.Slot = s;
            return(j);
        }
コード例 #2
0
ファイル: Item.cs プロジェクト: Creative-Person/Ladabot
        public static ItemLocation1 FromGround(Location loc)
        {
            ItemLocation1 j = new ItemLocation1();

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

            return(j);
        }
コード例 #3
0
ファイル: Item.cs プロジェクト: Creative-Person/Ladabot
        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);
        }