private void LoadAllYokai() { containerField.QueueFreeChildren(); for (YokaiId yokai = YokaiId.Hitotsumekozo; yokai != YokaiId.TOTAL; yokai++) { WantedTable wanted = WantedTable.Instance(); containerField.AddChild(wanted); wanted.Load(yokai.Data()); } }
public void HideYokai(YokaiId yokai) { if (currentVisible == null) { return; } currentVisible.Visible = false; currentVisible = null; }
public void ShowYokai(YokaiId yokai, bool withAnimation = true) { if (currentVisible != null) { currentVisible.Visible = false; } currentVisible = GetNode <AnimatedSprite>(yokai.ToString()); currentVisible.Visible = true; if (withAnimation) { currentVisible.Playing = true; } else { currentVisible.Playing = false; currentVisible.Frame = 0; } }
public YokaiAI(YokaiId yokai) { Yokai = yokai; }
public static YokaiData Data(this YokaiId yokai) => YokaiData.YokaiList[yokai];