public static ItemLocation1 FromSlot(Constants.SlotNumber s) { ItemLocation1 j = new ItemLocation1(); j.Type = Constants.ItemLocationType.Slot; j.Slot = s; return(j); }
public static ItemLocation1 FromGround(Location loc) { ItemLocation1 j = new ItemLocation1(); j.GroundLocation = loc; j.Type = Constants.ItemLocationType.Ground; return(j); }
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); }