Line[] GetPerpendicularLines(List <Line[, ]> linesOnFaces, FACE_TYPE face, puzzleIndex index) { // FRONT_BACK : [puzzle.yLen, puzzle.xLen] // TOP_BOTTOM : [puzzle.xLen, puzzle.zLen] // RIGHT_LEFT : [puzzle.yLen, puzzle.zLen] Line[] res = new Line[2]; switch (face) { case FACE_TYPE.FRONT_BACK: res[0] = linesOnFaces[(int)FACE_TYPE.TOP_BOTTOM][index.x, index.z]; res[1] = linesOnFaces[(int)FACE_TYPE.RIGHT_LEFT][index.y, index.z]; break; case FACE_TYPE.TOP_BOTTOM: res[0] = linesOnFaces[(int)FACE_TYPE.FRONT_BACK][index.y, index.x]; res[1] = linesOnFaces[(int)FACE_TYPE.RIGHT_LEFT][index.y, index.z]; break; case FACE_TYPE.RIGHT_LEFT: res[0] = linesOnFaces[(int)FACE_TYPE.FRONT_BACK][index.y, index.x]; res[1] = linesOnFaces[(int)FACE_TYPE.TOP_BOTTOM][index.x, index.z]; break; } return(res); }
//return face type of center image in slot public FACE_TYPE GetFaceType() { FACE_TYPE faceType = 0; for (int i = 0; i < Machine.instance.GetNumFaces(); i++) { if (Mathf.Round(faces [i].transform.position.y) == CENTER) { faceType = faces [i].GetComponent <FaceController> ().GetFaceType(); return(faceType); } } Debug.Log("Error! Returned default facetype. This shuoldn't happen!"); return(faceType); }
} // 0x00BFB2A0-0x00BFCCB0 public void SetHeroFace(FACE_TYPE type) { } // 0x00BFAE40-0x00BFB150
} // 0x0089ACC0-0x0089AE40 public void TalkAsk(int nativeControlId, string name, Index creatureIndex, GenderType gender, FACE_TYPE eFace, TextId textId, List <MessageAskItem> ask, int defaultPoint, bool bEnableCancel) { } // 0x0089AE40-0x0089AF70
public int i, j; // i: 위->아래 세로좌표, j : 왼쪽->오른쪽 가로좌표 public lineIndex(FACE_TYPE _faceType, int _i, int _j) { faceType = _faceType; i = _i; j = _j; }
} // 0x00D778D0-0x00D77940 // Methods public override void Open(int x, int y, Index index, bool bFemale, bool bIsFrameDisp, FACE_TYPE eFaceType, bool bFlip) { } // 0x00D76FC0-0x00D77040
[IEnumeratorCoroutineYield] // 0x00619850-0x006198D0 // [IteratorStateMachine] // 0x00619850-0x006198D0 public static IEnumerator DrawFaceF(int x, int y, LuaSymAct symAct, FACE_TYPE eFaceType) => default; // 0x00BFF920-0x00BFF9B0
[IEnumeratorCoroutineYield] // 0x00619760-0x006197E0 // [IteratorStateMachine] // 0x00619760-0x006197E0 public static IEnumerator DrawFaceFromPokemonIndex(int x, int y, Index pokemonIndex, bool bFemale, FACE_TYPE eFaceType) => default; // 0x00BFF770-0x00BFF810
private IEnumerator _Center(int nativeControlId, TextId textId, bool bAllOutput, bool bAutoClose) => default; // 0x0089A330-0x0089A3D0 // [IteratorStateMachine] // 0x0061D150-0x0061D1C0 private IEnumerator _Talk(int nativeControlId, string name, Index creatureIndex, GenderType genderType, FACE_TYPE eFace, string text, bool bAutoClose) => default; // 0x0089A400-0x0089A4C0
} // 0x00D76620-0x00D76720 public void ChangeFace(FACE_TYPE eFaceType) { } // 0x00D76720-0x00D76940
} // 0x00D75B30-0x00D75C00 protected virtual void Open(int x, int y, string name, bool bIsFrameDisp, FACE_TYPE eFaceType, bool bFlip) { } // 0x00D75C80-0x00D761F0
} // 0x00D759D0-0x00D75A50 public void OpenFromGfxParameter(int x, int y, GraphicsSystem.CharacterDatabaseParameter param, bool bFemale, bool bIsFrameDisp, FACE_TYPE eFaceType, bool bFlip) { } // 0x00D75B30-0x00D75C00
} // 0x00D69240-0x00D69280 public virtual void Open(int x, int y, Index index, bool bFemale, bool bIsFrameDisp, FACE_TYPE eFaceType, bool bFlip) { } // 0x00D759D0-0x00D75A50
} // 0x0080C030-0x0080C040 public void ChangeFace(FACE_TYPE eFaceType) { } // 0x0080C040-0x0080C0F0
} // 0x0080BD30-0x0080BD40 public void Open(int x, int y, Index index, bool bFemale, bool bIsFrameDisp, FACE_TYPE eFaceType, bool bFlip) { } // 0x0080BD40-0x0080BF90
} // 0x00C571F0-0x00C57710 public void ChangeFace(FACE_TYPE type) { } // 0x00C57830-0x00C57840
public void ProcessReward(REWARD_TYPE rewardType, int rewardCount, FACE_TYPE faceType, int facecount) { string strCheer = ""; switch (rewardType) { case REWARD_TYPE.WinCoins: playerCoins += rewardCount; GameObject confetti = Instantiate(cheerConfettiPrefab, mainCam.transform); strCheer += "You Win "; SoundManager.instance.StopGameMusic(); SoundManager.instance.PlayerWinMoney(); break; case REWARD_TYPE.Multiplier: StarFireworks(); playerCoins += rewardCount; strCheer += "BONUS MULTIPLIER! You Win "; SoundManager.instance.PlayerStars(); SoundManager.instance.StopGameMusic(); SoundManager.instance.PlayStarFireworks(); break; case REWARD_TYPE.LoseCoins: playerCoins -= rewardCount; CheckCoins(); strCheer += "Oh no! You lost "; SoundManager.instance.StopGameMusic(); SoundManager.instance.PlayerLoseMoney(); break; default: break; } coinsTextUI.text = playerCoins.ToString(); strCheer += rewardCount; if (rewardType == REWARD_TYPE.Multiplier) { strCheer += " extra coins for having "; } else if (rewardType == REWARD_TYPE.LoseCoins) { strCheer += " coins for having "; } else { strCheer += "coins for matching "; } strCheer += facecount; strCheer += " " + faceType.ToString() + "s!"; Debug.Log(strCheer); cheerTextUI.text = strCheer; cheerBoxUI.SetActive(true); }
private IEnumerator _Talk(int nativeControlId, string name, Index creatureIndex, GenderType genderType, FACE_TYPE eFace, string text, bool bAutoClose) => default; // 0x0089A400-0x0089A4C0 // [IteratorStateMachine] // 0x0061D1C0-0x0061D230 private IEnumerator _TalkAsk(int nativeControlId, string name, Index creatureIndex, GenderType gender, FACE_TYPE eFace, TextId textId, List <MessageAskItem> ask, int defaultPoint, bool bEnableCancel) => default; // 0x0089A4F0-0x0089A5D0
public static IEnumerator DrawFaceFromPokemonIndex(int x, int y, Index pokemonIndex, bool bFemale, FACE_TYPE eFaceType) => default; // 0x00BFF770-0x00BFF810 // [IteratorStateMachine] // 0x006197E0-0x00619850 private static IEnumerator DrawFaceCore_(int x, int y, Index index, bool bFemale, FACE_TYPE eFaceType, bool bFlip) => default; // 0x00BFF840-0x00BFF8F0
} // 0x0089A8E0-0x0089AA10 public void Talk(int nativeControlId, IPokemonStatus status, FACE_TYPE eFace, TextId textId, bool bAutoClose) { } // 0x0089AA10-0x0089ABA0
public static IEnumerator DrawFaceF(int x, int y, LuaSymAct symAct, FACE_TYPE eFaceType) => default; // 0x00BFF920-0x00BFF9B0 public static void ChangeFace(FACE_TYPE eFaceType) { } // 0x00BFF9E0-0x00BFFA60
} // 0x0089AA10-0x0089ABA0 public void Talk(int nativeControlId, string name, Index creatureIndex, GenderType gender, FACE_TYPE eFace, string text, bool bAutoClose) { } // 0x0089ABA0-0x0089ACC0
} // 0x00D76FC0-0x00D77040 protected override void Open(int x, int y, string faceFileName, bool bIsFrameDisp, FACE_TYPE eFaceType, bool bFlip) { } // 0x00D77040-0x00D778D0
} // 0x0089ABA0-0x0089ACC0 public void TalkAsk(int nativeControlId, IPokemonStatus status, FACE_TYPE eFace, TextId textId, List <MessageAskItem> ask, int defaultPoint, bool bEnableCancel = true /* Metadata: 0x00610EF2 */) { } // 0x0089ACC0-0x0089AE40