package jetbrains.mps.samples.Kaja.structure;

/*Generated by MPS */

import jetbrains.mps.smodel.runtime.EnumerationDescriptorBase;
import jetbrains.mps.smodel.runtime.EnumerationDescriptor;
import jetbrains.mps.lang.smodel.EnumerationLiteralsIndex;
import java.util.List;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.NotNull;

public class EnumerationDescriptor_LookingDirection extends EnumerationDescriptorBase {

  public EnumerationDescriptor_LookingDirection() {
    super(0x49a08c51fe543ccL, 0xbd998b46d641d7f5L, 0x61fd16e423a34c05L, "LookingDirection", "r:b567205c-7e17-4168-b413-945a6e17f37d(jetbrains.mps.samples.Kaja.structure)/4241665505353448626");
  }

  private final EnumerationDescriptor.MemberDescriptor myMember_north_0 = new EnumerationDescriptor.MemberDescriptor("north", "north", 0x61fd16e423a34c44L, "r:b567205c-7e17-4168-b413-945a6e17f37d(jetbrains.mps.samples.Kaja.structure)/4241665505353448628");
  private final EnumerationDescriptor.MemberDescriptor myMember_east_0 = new EnumerationDescriptor.MemberDescriptor("east", "east", 0x61fd16e423a38036L, "r:b567205c-7e17-4168-b413-945a6e17f37d(jetbrains.mps.samples.Kaja.structure)/4241665505353448629");
  private final EnumerationDescriptor.MemberDescriptor myMember_south_0 = new EnumerationDescriptor.MemberDescriptor("south", "south", 0x61fd16e423a38039L, "r:b567205c-7e17-4168-b413-945a6e17f37d(jetbrains.mps.samples.Kaja.structure)/4241665505353448630");
  private final EnumerationDescriptor.MemberDescriptor myMember_west_0 = new EnumerationDescriptor.MemberDescriptor("west", "west", 0x61fd16e423a3803dL, "r:b567205c-7e17-4168-b413-945a6e17f37d(jetbrains.mps.samples.Kaja.structure)/4241665505353448631");

  private final EnumerationLiteralsIndex myIndex = EnumerationLiteralsIndex.build(0x49a08c51fe543ccL, 0xbd998b46d641d7f5L, 0x61fd16e423a34c05L, 0x61fd16e423a34c44L, 0x61fd16e423a38036L, 0x61fd16e423a38039L, 0x61fd16e423a3803dL);
  private final List<EnumerationDescriptor.MemberDescriptor> myMembers = new EnumerationDescriptorBase.MembersList(myIndex, myMember_north_0, myMember_east_0, myMember_south_0, myMember_west_0);

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getDefault() {
    return null;
  }

  @NotNull
  @Override
  public List<EnumerationDescriptor.MemberDescriptor> getMembers() {
    return myMembers;
  }

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getMember(@Nullable String memberName) {
    if (memberName == null) {
      return null;
    }
    switch (memberName) {
      case "north":
        return myMember_north_0;
      case "east":
        return myMember_east_0;
      case "south":
        return myMember_south_0;
      case "west":
        return myMember_west_0;
    }
    return null;
  }

  @Nullable
  @Override
  public EnumerationDescriptor.MemberDescriptor getMember(long idValue) {
    int index = myIndex.index(idValue);
    if (index == -1) {
      return null;
    }
    return myMembers.get(index);
  }
}
