private IEnumerator CreateMembersOnResume() { if (MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData != null) { List <LoungeModel.SlotInfo> slots = MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData.slotInfos; for (int i = 0; i < slots.Count; i++) { if (slots[i].userInfo != null) { int userId = slots[i].userInfo.userId; if (userId != MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id && MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeMemberStatus != null) { LoungeMemberStatus status = MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeMemberStatus[userId]; if (status != null) { LoungeMemberStatus.MEMBER_STATUS partyStatus = status.GetStatus(); if (partyStatus == LoungeMemberStatus.MEMBER_STATUS.LOUNGE || partyStatus == LoungeMemberStatus.MEMBER_STATUS.QUEST_READY) { HomePeople.CreateLoungePlayer(slots[i], false, true); yield return((object)null); } } } } } } }
private void OnChangeMemberStatus(LoungeMemberStatus status) { //IL_006e: Unknown result type (might be due to invalid IL or missing references) int userId = status.userId; switch (status.GetStatus()) { case LoungeMemberStatus.MEMBER_STATUS.QUEST_READY: if (status.isHost) { CreatePartyAnnounce(userId); } break; case LoungeMemberStatus.MEMBER_STATUS.QUEST: case LoungeMemberStatus.MEMBER_STATUS.FIELD: case LoungeMemberStatus.MEMBER_STATUS.ARENA: HomePeople.DestroyLoungePlayer(userId); break; case LoungeMemberStatus.MEMBER_STATUS.LOUNGE: SendRoomPosition(userId); NeedLoungeQuestBalloonUpdate = true; this.StartCoroutine(CreatePlayerOnChangedStatus(userId)); break; } }
private void DestoryMembersOnResume() { if (!(HomePeople == null) && HomePeople.loungePlayers != null) { for (int i = 0; i < HomePeople.loungePlayers.Count; i++) { int userId = HomePeople.loungePlayers[i].GetUserId(); if (userId != 0) { LoungeModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(userId); if (slotInfoByUserId == null) { HomePeople.DestroyLoungePlayer(userId); } else if (MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeMemberStatus != null) { LoungeMemberStatus loungeMemberStatus = MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeMemberStatus[userId]; LoungeMemberStatus.MEMBER_STATUS status = loungeMemberStatus.GetStatus(); if (status == LoungeMemberStatus.MEMBER_STATUS.QUEST || status == LoungeMemberStatus.MEMBER_STATUS.FIELD) { HomePeople.DestroyLoungePlayer(userId); } } } } } }
public HomeCharacterBase CreatePlayer(HomePeople home_people, Transform parent, FriendCharaInfo chara_info, WayPoint way_point) { //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_001c: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_006a: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Unknown result type (might be due to invalid IL or missing references) HomePlayerCharacter homePlayerCharacter = Utility.CreateGameObjectAndComponent("HomePlayerCharacter", parent, -1) as HomePlayerCharacter; Transform val = homePlayerCharacter.get_transform(); val.set_position(way_point.GetPosInCollider()); homePlayerCharacter.SetHomePeople(home_people); homePlayerCharacter.SetWayPoint(way_point); homePlayerCharacter.SetFriendCharcterInfo(chara_info); float num = 0f; float num2 = 0f; if (!way_point.get_name().StartsWith("LEAF")) { Vector3 eulerAngles = way_point.get_transform().get_eulerAngles(); num = eulerAngles.y; num2 = 0f; } else { num = (float)Random.Range(0, 360); num2 = Random.Range(-2f, 2f); } homePlayerCharacter.SetWaitTime(num2); val.set_eulerAngles(new Vector3(0f, num, 0f)); return(homePlayerCharacter); }
public HomeCharacterBase CreateNPC(HomePeople home_people, Transform parent, OutGameSettingsManager.HomeScene.NPC npc) { //IL_008c: Unknown result type (might be due to invalid IL or missing references) //IL_00ac: Unknown result type (might be due to invalid IL or missing references) //IL_00cc: Unknown result type (might be due to invalid IL or missing references) if (!TutorialStep.IsTheTutorialOver(TUTORIAL_STEP.ENTER_FIELD_03) && npc.npcID != 0) { return(null); } OutGameSettingsManager.HomeScene.NPC.Situation situation = npc.GetSituation(); if (situation == null) { return(null); } HomeNPCCharacter homeNPCCharacter = (!npc.overrideComponentName.IsNullOrWhiteSpace()) ? (Utility.CreateGameObjectAndComponent(npc.overrideComponentName, parent, -1) as HomeNPCCharacter) : (Utility.CreateGameObjectAndComponent("HomeNPCCharacter", parent, -1) as HomeNPCCharacter); homeNPCCharacter.SetNPCInfo(npc); homeNPCCharacter.SetNPCData(Singleton <NPCTable> .I.GetNPCData(npc.npcID)); homeNPCCharacter.SetHomePeople(home_people); homeNPCCharacter._transform.set_position(situation.pos); homeNPCCharacter._transform.set_eulerAngles(new Vector3(0f, situation.rot, 0f)); homeNPCCharacter._transform.set_localScale(new Vector3(npc.scaleX, 1f, 1f)); homeNPCCharacter.StopDiscussion(); return(homeNPCCharacter); }
public void OnRecvRoomPosition(int id, Vector3 targetPos, LOUNGE_ACTION_TYPE type) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) if (!(HomePeople == null)) { HomePeople.SetInitialPositionLoungePlayer(id, targetPos, type); } }
public void OnRecvRoomMove(int id, Vector3 targetPos) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) if (!(HomePeople == null)) { HomePeople.MoveLoungePlayer(id, targetPos); } }
private IEnumerator CreatePlayerOnChangedStatus(int userId) { yield return((object)SendLoungeInfoForce()); LoungeModel.SlotInfo slot = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(userId); HomePeople.CreateLoungePlayer(slot, true, true); }
public void OnRecvChatMessage(int userId) { if (!(HomePeople == null)) { LoungePlayer loungePlayer = HomePeople.GetLoungePlayer(userId); if (!(loungePlayer == null)) { loungePlayer.ResetAFKTimer(); } } }
private IEnumerator CreateCharacterRoomJoined(int userId) { yield return((object)this.StartCoroutine(SendLoungeInfoForce())); LoungeModel.SlotInfo slot = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(userId); if (slot != null && HomePeople != null && HomePeople.CreateLoungePlayer(slot, true, false)) { SetAnnounce(new LoungeAnnounce.AnnounceData(LoungeAnnounce.ANNOUNCE_TYPE.JOIN_LOUNGE, slot.userInfo.name)); if (MonoBehaviourSingleton <LoungeNetworkManager> .IsValid()) { MonoBehaviourSingleton <LoungeNetworkManager> .I.JoinNotification(slot.userInfo); } } }
public void OnRecvRoomLeaved(int id) { //IL_0064: Unknown result type (might be due to invalid IL or missing references) if (!(HomePeople == null)) { if (HomePeople.DestroyLoungePlayer(id)) { LoungeModel.SlotInfo slotInfoByUserId = MonoBehaviourSingleton <LoungeMatchingManager> .I.GetSlotInfoByUserId(id); SetAnnounce(new LoungeAnnounce.AnnounceData(LoungeAnnounce.ANNOUNCE_TYPE.LEAVED_LOUNGE, slotInfoByUserId.userInfo.name)); } if (id != MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id) { this.StartCoroutine(SendLoungeInfoForce()); } } }
public void OnRecvRoomKick(int id) { if (!(HomePeople == null)) { if (MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id == id) { EventData[] autoEvents = new EventData[2] { new EventData("MAIN_MENU_LOUNGE", null), new EventData("LOUNGE_KICKED", null) }; MonoBehaviourSingleton <GameSceneManager> .I.SetAutoEvents(autoEvents); } else { HomePeople.DestroyLoungePlayer(id); } } }
public HomeCharacterBase CreateSelf(HomePeople home_people, Transform parent, Action <HomeStageAreaEvent> notice_callback) { //IL_0076: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00df: Unknown result type (might be due to invalid IL or missing references) //IL_00f4: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0104: Unknown result type (might be due to invalid IL or missing references) //IL_013e: Unknown result type (might be due to invalid IL or missing references) //IL_0157: Unknown result type (might be due to invalid IL or missing references) HomeSelfCharacter homeSelfCharacter = Utility.CreateGameObjectAndComponent("HomeSelfCharacter", parent, -1) as HomeSelfCharacter; homeSelfCharacter.SetHomePeople(home_people); homeSelfCharacter.StopDiscussion(); homeSelfCharacter.SetNoticeCallback(notice_callback); OutGameSettingsManager.HomeScene homeScene = MonoBehaviourSingleton <OutGameSettingsManager> .I.homeScene; OutGameSettingsManager.LoungeScene loungeScene = MonoBehaviourSingleton <OutGameSettingsManager> .I.loungeScene; OutGameSettingsManager.GuildScene guildScene = MonoBehaviourSingleton <OutGameSettingsManager> .I.guildScene; Vector3 position; float num; if (MonoBehaviourSingleton <DeliveryManager> .IsValid() && MonoBehaviourSingleton <DeliveryManager> .I.isStoryEventEnd) { MonoBehaviourSingleton <DeliveryManager> .I.isStoryEventEnd = false; position = (MonoBehaviourSingleton <HomeManager> .IsValid() ? homeScene.selfInitStoryEndPos : ((!MonoBehaviourSingleton <LoungeManager> .IsValid()) ? guildScene.selfInitStoryEndPos : loungeScene.selfInitStoryEndPos)); num = (MonoBehaviourSingleton <HomeManager> .IsValid() ? homeScene.selfInitStoryEndRot : ((!MonoBehaviourSingleton <LoungeManager> .IsValid()) ? guildScene.selfInitStoryEndRot : loungeScene.selfInitStoryEndRot)); } else { position = (MonoBehaviourSingleton <HomeManager> .IsValid() ? homeScene.selfInitPos : ((!MonoBehaviourSingleton <LoungeManager> .IsValid()) ? guildScene.selfInitPos : loungeScene.selfInitPos)); num = (MonoBehaviourSingleton <HomeManager> .IsValid() ? homeScene.selfInitRot : ((!MonoBehaviourSingleton <LoungeManager> .IsValid()) ? guildScene.selfInitRot : loungeScene.selfInitRot)); } homeSelfCharacter._transform.set_position(position); homeSelfCharacter._transform.set_eulerAngles(new Vector3(0f, num, 0f)); if (MonoBehaviourSingleton <LoungeManager> .IsValid()) { homeSelfCharacter.SetChatEvent(); } return(homeSelfCharacter); }
public HomeCharacterBase CreateLoungeMoveNPC(HomePeople home_people, Transform parent, WayPoint way_point, OutGameSettingsManager.HomeScene.NPC npc) { //IL_0013: Unknown result type (might be due to invalid IL or missing references) //IL_0018: Expected O, but got Unknown //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) LoungeMoveNPC loungeMoveNPC = Utility.CreateGameObjectAndComponent("LoungeMoveNPC", parent, -1) as LoungeMoveNPC; Transform val = loungeMoveNPC.get_transform(); val.set_position(way_point.GetPosInCollider()); float num = (float)Random.Range(0, 360); val.set_eulerAngles(new Vector3(0f, num, 0f)); float waitTime = Random.Range(-2f, 2f); loungeMoveNPC.SetWaitTime(waitTime); loungeMoveNPC.SetHomePeople(home_people); loungeMoveNPC.SetWayPoint(way_point); loungeMoveNPC.SetNPCData(Singleton <NPCTable> .I.GetNPCData(npc.npcID)); loungeMoveNPC.SetNPCInfo(npc); return(loungeMoveNPC); }
public LoungePlayer CreateLoungePlayer(HomePeople home_people, Transform parent, CharaInfo chara_info, bool useMovingEntry) { //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0062: Unknown result type (might be due to invalid IL or missing references) //IL_007d: Unknown result type (might be due to invalid IL or missing references) //IL_0089: Unknown result type (might be due to invalid IL or missing references) LoungePlayer loungePlayer = Utility.CreateGameObjectAndComponent("LoungePlayer", parent, -1) as LoungePlayer; loungePlayer.SetHomePeople(home_people); loungePlayer.StopDiscussion(); loungePlayer.SetLoungeCharaInfo(chara_info); OutGameSettingsManager.LoungeScene loungeScene = MonoBehaviourSingleton <OutGameSettingsManager> .I.loungeScene; Vector3 val = default(Vector3); val._002Ector(0f, 0f, -1f); float selfInitRot = loungeScene.selfInitRot; loungePlayer._transform.set_position((!useMovingEntry) ? loungeScene.selfInitPos : val); loungePlayer._transform.set_eulerAngles(new Vector3(0f, selfInitRot, 0f)); loungePlayer.SetMoveTargetPosition(loungeScene.selfInitPos); loungePlayer.SetChatEvent(); return(loungePlayer); }
public void OnRecvRoomAction(int cid, int aid) { if (!(HomePeople == null)) { LoungePlayer loungePlayer = HomePeople.GetLoungePlayer(cid); if (!(loungePlayer == null)) { loungePlayer.ResetAFKTimer(); switch (aid) { case 1: loungePlayer.OnRecvSit(); break; case 2: loungePlayer.OnRecvStandUp(); break; case 5: loungePlayer.OnRecvToEquip(); break; case 4: loungePlayer.OnRecvToGacha(); break; case 6: loungePlayer.OnRecvAFK(); break; default: loungePlayer.OnRecvNone(); break; } } } }
private IEnumerator CreateLoungePlayerFromSlotInfo() { if (MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData != null) { List <LoungeModel.SlotInfo> data = MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData.slotInfos; for (int i = 0; i < data.Count; i++) { if (data[i].userInfo != null && data[i].userInfo.userId != MonoBehaviourSingleton <UserInfoManager> .I.userInfo.id) { if (MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeMemberStatus == null) { break; } LoungeMemberStatus status = MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeMemberStatus[data[i].userInfo.userId]; LoungeMemberStatus.MEMBER_STATUS partyStatus = status.GetStatus(); if (partyStatus == LoungeMemberStatus.MEMBER_STATUS.LOUNGE || partyStatus == LoungeMemberStatus.MEMBER_STATUS.QUEST_READY) { HomePeople.CreateLoungePlayer(data[i], false, false); yield return((object)null); } } } } }
} //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Unknown result type (might be due to invalid IL or missing references) public void SetHomePeople(HomePeople homePeople) { this.homePeople = homePeople; }