플레이팹 순위표 v2 작업 중...

This commit is contained in:
Ino 2025-01-25 08:24:47 +09:00
parent 4430f92236
commit fa96cea497
12 changed files with 541 additions and 92 deletions

View File

@ -19,5 +19,5 @@ MonoBehaviour:
EdExPath:
LocalCloudScriptPath: C:/Git/nn_himminji/Assets/PlayFabEditorExtensions/Editor/Resources/.CloudScript.js
PanelIsShown: 0
curMainMenuIdx: 1
curMainMenuIdx: 0
curSubMenuIdx: 0

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -7256,6 +7256,42 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: -207}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &762969654386943866
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 9114737150787530329}
m_Layer: 5
m_Name: Mimic
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &9114737150787530329
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 762969654386943866}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2819497699184699550}
m_Father: {fileID: 3456383120591884671}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &777278367519131233
GameObject:
m_ObjectHideFlags: 0
@ -22531,6 +22567,7 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
LongPressDuration: 0.9
--- !u!1 &2156589150909938091
GameObject:
m_ObjectHideFlags: 0
@ -34177,6 +34214,141 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: -334.1}
m_SizeDelta: {x: 405.4, y: 118.31}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &3116918948632563643
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7641658770371297334}
- component: {fileID: 3600069390358070747}
- component: {fileID: 6092863833640395447}
m_Layer: 5
m_Name: t_floor
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7641658770371297334
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3116918948632563643}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1359527207984642862}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -184}
m_SizeDelta: {x: 150, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3600069390358070747
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3116918948632563643}
m_CullTransparentMesh: 1
--- !u!114 &6092863833640395447
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3116918948632563643}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\uCD5C\uACE0 \uCE35 : 00\uCE35"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: a387e325271126742ad15569dba1ac57, type: 2}
m_sharedMaterial: {fileID: -6459762427321423278, guid: a387e325271126742ad15569dba1ac57,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190080
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 35
m_fontSizeBase: 35
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 10
m_fontSizeMax: 40
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 4096
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 0
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &3117855628814337448
GameObject:
m_ObjectHideFlags: 0
@ -40488,6 +40660,43 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &3742785345755231042
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1359527207984642862}
m_Layer: 5
m_Name: Maze
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1359527207984642862
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3742785345755231042}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1919780657983490151}
- {fileID: 7641658770371297334}
m_Father: {fileID: 3456383120591884671}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &3751178671897854767
GameObject:
m_ObjectHideFlags: 0
@ -43763,6 +43972,7 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
LongPressDuration: 0.9
--- !u!1 &4013306822921272172
GameObject:
m_ObjectHideFlags: 0
@ -51857,6 +52067,7 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
LongPressDuration: 0.9
--- !u!1 &4898390718142910970
GameObject:
m_ObjectHideFlags: 0
@ -55845,9 +56056,15 @@ MonoBehaviour:
m_Content: {fileID: 0}
go_card: {fileID: 6812196077140225535, guid: addb3980a64d43045be5386b3f735ac3, type: 3}
MoneyForm_Ticket: {fileID: 833754818585651238}
gos:
- {fileID: 762969654386943866}
- {fileID: 3742785345755231042}
texts:
- {fileID: 1134907645997091294}
m_ArrowUI: {fileID: 550472041806731591}
texts_maze:
- {fileID: 2206291501861922666}
- {fileID: 6092863833640395447}
--- !u!1 &5415595708530692618
GameObject:
m_ObjectHideFlags: 0
@ -62774,6 +62991,7 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
LongPressDuration: 0.9
--- !u!1 &6151500234051869556
GameObject:
m_ObjectHideFlags: 0
@ -69476,6 +69694,142 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
LongPressDuration: 0.9
--- !u!1 &6770614555842112463
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1919780657983490151}
- component: {fileID: 2895401426017668632}
- component: {fileID: 2206291501861922666}
m_Layer: 5
m_Name: t_rank
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1919780657983490151
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6770614555842112463}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1359527207984642862}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -133}
m_SizeDelta: {x: 150, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2895401426017668632
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6770614555842112463}
m_CullTransparentMesh: 1
--- !u!114 &2206291501861922666
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6770614555842112463}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\uB7AD\uD0B9 : 000\uC704"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: a387e325271126742ad15569dba1ac57, type: 2}
m_sharedMaterial: {fileID: -6459762427321423278, guid: a387e325271126742ad15569dba1ac57,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190080
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 35
m_fontSizeBase: 35
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 10
m_fontSizeMax: 40
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 4096
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 0
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &6775564762112755838
GameObject:
m_ObjectHideFlags: 0
@ -84861,6 +85215,7 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
LongPressDuration: 0.9
--- !u!1 &8277840834063213086
GameObject:
m_ObjectHideFlags: 0
@ -91949,9 +92304,10 @@ RectTransform:
- {fileID: 2560577325283151973}
- {fileID: 1438474692404572917}
- {fileID: 4928543301605757870}
- {fileID: 2819497699184699550}
- {fileID: 1530509777072174400}
- {fileID: 5143025981118404211}
- {fileID: 9114737150787530329}
- {fileID: 1359527207984642862}
m_Father: {fileID: 5366708532861094367}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
@ -101907,7 +102263,7 @@ PrefabInstance:
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 3456383120591884671}
m_TransformParent: {fileID: 9114737150787530329}
m_Modifications:
- target: {fileID: 1156161939311564305, guid: 741f139cbc7b708439dd195045c7d8a1,
type: 3}
@ -101997,17 +102353,17 @@ PrefabInstance:
- target: {fileID: 4320364344018254388, guid: 741f139cbc7b708439dd195045c7d8a1,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4320364344018254388, guid: 741f139cbc7b708439dd195045c7d8a1,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4320364344018254388, guid: 741f139cbc7b708439dd195045c7d8a1,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4320364344018254388, guid: 741f139cbc7b708439dd195045c7d8a1,
type: 3}
@ -102069,6 +102425,11 @@ PrefabInstance:
propertyPath: m_Name
value: ArrowUI
objectReference: {fileID: 0}
- target: {fileID: 6672612604714614684, guid: 741f139cbc7b708439dd195045c7d8a1,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8007294508452680228, guid: 741f139cbc7b708439dd195045c7d8a1,
type: 3}
propertyPath: m_AnchorMax.y
@ -105185,6 +105546,11 @@ PrefabInstance:
propertyPath: m_Name
value: MoneyForm
objectReference: {fileID: 0}
- target: {fileID: 3590403063326329916, guid: 150bed98d110cb24292c78f18534decd,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7765070059004976338, guid: 150bed98d110cb24292c78f18534decd,
type: 3}
propertyPath: m_Pivot.x

View File

@ -4,12 +4,14 @@ using MiniJSON;
using Newtonsoft.Json;
using PlayFab;
using PlayFab.ClientModels;
using PlayFab.ProgressionModels;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using Random = UnityEngine.Random;
using StatisticUpdate = PlayFab.ClientModels.StatisticUpdate;
public class ServerInfo : MyCoroutine
{
@ -471,57 +473,97 @@ public class ServerInfo : MyCoroutine
Set_Coroutine(() => { Save_Rank(leaderboard, _v); }, 2f);
});
}
public void Get_Rank(string leaderboard, bool getaround100, Action<PlayerLeaderboardEntry> _my, Action<List<PlayerLeaderboardEntry>> _act100)
public void Get_MyRank(string leaderboard, Action<EntityLeaderboardEntry> my)
{
NetWait.Ins.Set(true);
var MyProfileConstraints = new PlayerProfileViewConstraints { ShowDisplayName = true, ShowAvatarUrl = true };
PlayFabClientAPI.GetLeaderboard(new GetLeaderboardRequest { StatisticName = leaderboard, MaxResultsCount = 100, ProfileConstraints = MyProfileConstraints },
result =>
PlayFabProgressionAPI.GetLeaderboardAroundEntity(new GetLeaderboardAroundEntityRequest
{ LeaderboardName = leaderboard, MaxSurroundingEntries = 1 },
result =>
{
NetWait.Ins.Set(false);
if (!DSUtil.CheckNull(result) && result.Rankings.Count > 0)
{
if (result.Leaderboard != null && result.Leaderboard.Count > 0)
{
var my = result.Leaderboard.Find(f => f.PlayFabId.Equals(m_LoginInfo.PlayFabId));
if (my == null)
{
PlayFabClientAPI.GetLeaderboardAroundPlayer(new GetLeaderboardAroundPlayerRequest { StatisticName = leaderboard, PlayFabId = m_LoginInfo.PlayFabId, ProfileConstraints = MyProfileConstraints, MaxResultsCount = getaround100 ? 100 : 1 },
result_around =>
{
if (result_around.Leaderboard != null && result_around.Leaderboard.Count > 0)
{
NetWait.Ins.Set(false);
_my(result_around.Leaderboard.Find(f => f.PlayFabId.Equals(m_LoginInfo.PlayFabId)));
if (getaround100) _act100(result_around.Leaderboard);
else _act100(result.Leaderboard);
}
},
error_around =>
{
NetWait.Ins.Set(false);
ToastUI.Ins.Set(143);
_my(new PlayerLeaderboardEntry { PlayFabId = m_LoginInfo.PlayFabId, DisplayName = UserName, Position = 99998, StatValue = 0, Profile = new PlayerProfileModel { AvatarUrl = m_ServerData.Get_EqiupmentEquip(eItem.PC).ToString() } });
_act100(new List<PlayerLeaderboardEntry>());
});
}
else
{
NetWait.Ins.Set(false);
_my(my);
_act100(result.Leaderboard);
}
}
else
{
NetWait.Ins.Set(false);
ToastUI.Ins.Set(143);
_my(new PlayerLeaderboardEntry { PlayFabId = m_LoginInfo.PlayFabId, DisplayName = UserName, Position = 99998, StatValue = 0, Profile = new PlayerProfileModel { AvatarUrl = m_ServerData.Get_EqiupmentEquip(eItem.PC).ToString() } });
_act100(new List<PlayerLeaderboardEntry>());
}
},
fail =>
}
else
{
NetWait.Ins.Set(false);
FailCheck(fail, "랭킹 정보 획득 실패");
});
ToastUI.Ins.Set(143);
my(null);
}
},
error =>
{
NetWait.Ins.Set(false);
FailCheck(error, "내 랭킹 정보 획득 실패");
});
}
public void Get_Rank(string leaderboard, Action<List<EntityLeaderboardEntry>> _act100, uint pagesize = 50)
{
NetWait.Ins.Set(true);
PlayFabProgressionAPI.GetLeaderboard(new GetEntityLeaderboardRequest { LeaderboardName = leaderboard, PageSize = pagesize },
result =>
{
NetWait.Ins.Set(false);
if (!DSUtil.CheckNull(result) && result.Rankings.Count > 0)
{
}
else
{
ToastUI.Ins.Set(143);
_act100(null);
}
}, error =>
{
NetWait.Ins.Set(false);
FailCheck(error, "랭킹 정보 획득 실패");
});
//var MyProfileConstraints = new PlayerProfileViewConstraints { ShowDisplayName = true, ShowAvatarUrl = true };
//PlayFabClientAPI.GetLeaderboard(new GetLeaderboardRequest { StatisticName = leaderboard, MaxResultsCount = 100, ProfileConstraints = MyProfileConstraints },
// result =>
// {
// if (result.Leaderboard != null && result.Leaderboard.Count > 0)
// {
// var my = result.Leaderboard.Find(f => f.PlayFabId.Equals(m_LoginInfo.PlayFabId));
// if (my == null)
// {
// PlayFabClientAPI.GetLeaderboardAroundPlayer(new GetLeaderboardAroundPlayerRequest { StatisticName = leaderboard, PlayFabId = m_LoginInfo.PlayFabId, ProfileConstraints = MyProfileConstraints, MaxResultsCount = getaround100 ? 100 : 1 },
// result_around =>
// {
// if (result_around.Leaderboard != null && result_around.Leaderboard.Count > 0)
// {
// NetWait.Ins.Set(false);
// _my(result_around.Leaderboard.Find(f => f.PlayFabId.Equals(m_LoginInfo.PlayFabId)));
// if (getaround100) _act100(result_around.Leaderboard);
// else _act100(result.Leaderboard);
// }
// },
// error_around =>
// {
// NetWait.Ins.Set(false);
// ToastUI.Ins.Set(143);
// _my(new PlayerLeaderboardEntry { PlayFabId = m_LoginInfo.PlayFabId, DisplayName = UserName, Position = 99998, StatValue = 0, Profile = new PlayerProfileModel { AvatarUrl = m_ServerData.Get_EqiupmentEquip(eItem.PC).ToString() } });
// _act100(new List<PlayerLeaderboardEntry>());
// });
// }
// else
// {
// NetWait.Ins.Set(false);
// _my(my);
// _act100(result.Leaderboard);
// }
// }
// else
// {
// NetWait.Ins.Set(false);
// ToastUI.Ins.Set(143);
// _my(new PlayerLeaderboardEntry { PlayFabId = m_LoginInfo.PlayFabId, DisplayName = UserName, Position = 99998, StatValue = 0, Profile = new PlayerProfileModel { AvatarUrl = m_ServerData.Get_EqiupmentEquip(eItem.PC).ToString() } });
// _act100(new List<PlayerLeaderboardEntry>());
// }
// },
// fail =>
// {
// NetWait.Ins.Set(false);
// FailCheck(fail, "랭킹 정보 획득 실패");
// });
}
public void Get_OtherUserInfo(string _playfabid, Action<ServerData> _act)
{

View File

@ -48,6 +48,8 @@ public class DungeonMapConfigTableData : TableDataBase
get { return _Time; }
set { _Time = value; _Time.RandomizeCryptoKey(); }
}
public int Get_DungeonIndex() { return MyEnumToInt.Ins.Get_Int(e_DungeonType) - 1; }
}
public class table_dungeonmapconfig : table_missionbase

View File

@ -50,6 +50,7 @@ public class BattleMapConfigTableData : TableDataBase
public override string Get_Name() { return table_localtext.Ins.Get_Text(n_MapName); }
public string Get_Desc() { return table_localtext.Ins.Get_Text(n_MapDesc); }
}
public class table_battlemapconfig : table_missionbase

View File

@ -14,11 +14,11 @@ public class Rank_Level : ScrollViewMgr
if ((t - ServerInfo.ServerTime).TotalSeconds <= 0d)
{
t = ServerInfo.ServerTime.AddMinutes(10);
ServerInfo.Ins.Get_Rank("Level", false, my => { m_MyRankCard.Set(my); m_MyRankCard.Set_MyCard(); }, list =>
{
DSUtil.Fix_Rank(list);
Set_ScrollView(list, true);
});
//ServerInfo.Ins.Get_Rank("Level", false, my => { m_MyRankCard.Set(my); m_MyRankCard.Set_MyCard(); }, list =>
//{
// DSUtil.Fix_Rank(list);
// Set_ScrollView(list, true);
//});
}
}
}

View File

@ -14,11 +14,11 @@ public class Rank_PetBattle : ScrollViewMgr
if ((t - ServerInfo.ServerTime).TotalSeconds <= 0d)
{
t = ServerInfo.ServerTime.AddMinutes(10);
ServerInfo.Ins.Get_Rank("PetBattle", false, my => { m_MyRankCard.Set(my); m_MyRankCard.Set_MyCard(); }, list =>
{
DSUtil.Fix_Rank(list);
Set_ScrollView(list, true);
});
//ServerInfo.Ins.Get_Rank("PetBattle", false, my => { m_MyRankCard.Set(my); m_MyRankCard.Set_MyCard(); }, list =>
//{
// DSUtil.Fix_Rank(list);
// Set_ScrollView(list, true);
//});
}
}
}

View File

@ -9,14 +9,14 @@ public class Rank_Stage : ScrollViewMgr
private void OnEnable()
{
ServerInfo.Ins.Get_Rank("Stage", false, my =>
{
m_MyRankCard.Set(my);
m_MyRankCard.Set_MyCard();
}, list =>
{
DSUtil.Fix_Rank(list);
Set_ScrollView(list, true);
});
//ServerInfo.Ins.Get_Rank("Stage", false, my =>
//{
// m_MyRankCard.Set(my);
// m_MyRankCard.Set_MyCard();
//}, list =>
//{
// DSUtil.Fix_Rank(list);
// Set_ScrollView(list, true);
//});
}
}

View File

@ -30,10 +30,10 @@ public class Rank_TimeAttack : ScrollViewArrMgr
public override void Set(int _chapter)
{
dic_cardbase[0].ForEach(f => (f as ChapterTabCard).Set_OnOff(_chapter));
ServerInfo.Ins.Get_Rank(DSUtil.Format("TimeAttack_Chapter_{0}", _chapter), false, my => { m_MyRankCard.Set(my); m_MyRankCard.Set_MyCard(); }, list =>
{
DSUtil.Fix_Rank(list);
Set_ScrollView(1, list, true);
});
//ServerInfo.Ins.Get_Rank(DSUtil.Format("TimeAttack_Chapter_{0}", _chapter), false, my => { m_MyRankCard.Set(my); m_MyRankCard.Set_MyCard(); }, list =>
//{
// DSUtil.Fix_Rank(list);
// Set_ScrollView(1, list, true);
//});
}
}

View File

@ -1,14 +1,17 @@
using CodeStage.AntiCheat.ObscuredTypes;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class MapChoiceUI_Dungeon : uScrollViewMgr
{
public static MapChoiceUI_Dungeon Ins;
public MoneyForm MoneyForm_Ticket;
public GameObject[] gos; // 0 1 2 3 던전 정보
public TextMeshProUGUI[] texts; // 0 던전이름
public ArrowUI m_ArrowUI;
public ArrowUI m_ArrowUI; // 미믹 단계 설정
public TextMeshProUGUI[] texts_maze; // 0 랭킹, 1 최고 층수
List<eDungeon> dungeons = new List<eDungeon> { eDungeon.d1_Mimic, eDungeon.d2_Maze, eDungeon.d3_Nightmare, eDungeon.d4_Wave };
ObscuredInt SelectMapID = 1001, SelectLv;
@ -24,28 +27,56 @@ public class MapChoiceUI_Dungeon : uScrollViewMgr
}
}
public override void Set_UI()
{
var mapData = table_battlemapconfig.Ins.Get_Data(SelectMapID);
MoneyForm_Ticket.Set(500 + MyEnumToInt.Ins.Get_Int(mapData.e_Dungeon));
texts[0].text = mapData.Get_Name();
var dungeonData = table_dungeonmapconfig.Ins.Get_Data_orNull(mapData.e_Dungeon, SelectLv);
}
public void Select_Dungeon(int mapid)
{
var sdata = ServerInfo.Ins.m_ServerData;
var mapData = table_battlemapconfig.Ins.Get_Data(SelectMapID);
SelectMapID = mapid;
SelectMapID.RandomizeCryptoKey();
var mapData = table_battlemapconfig.Ins.Get_Data(SelectMapID);
SelectLv = sdata.Get_DungeonLv(mapData.e_Dungeon) + 1;
var dungeonData = table_dungeonmapconfig.Ins.Get_Data_orNull(mapData.e_Dungeon, SelectLv);
if (DSUtil.CheckNull(dungeonData)) --SelectLv;
if (DSUtil.CheckNull(dungeonData))
{
for (int i = 0; i < SelectLv; i++)
{
--SelectLv;
dungeonData = table_dungeonmapconfig.Ins.Get_Data_orNull(mapData.e_Dungeon, SelectLv);
if (!DSUtil.CheckNull(dungeonData))
break;
}
}
SelectLv.RandomizeCryptoKey();
DSUtil.InActivateGameObjects(gos, dungeonData.Get_DungeonIndex());
m_ArrowUI.Set(totalcount => { Select_Lv(totalcount); }, SelectLv, true, 1);
texts[0].text = mapData.Get_Name();
MoneyForm_Ticket.Set(mapData.n_TicketID);
Set_UI();
switch (mapData.e_Dungeon)
{
case eDungeon.d1_Mimic:
m_ArrowUI.Set(totalcount => { Select_Lv(totalcount); }, SelectLv, true, 1);
break;
case eDungeon.d2_Maze:
texts_maze[0].text = texts_maze[1].text = "";
ServerInfo.Ins.Get_MyRank("Rank_Maze", my =>
{
if (DSUtil.CheckNull(my))
{
texts_maze[0].text = DSUtil.Format(323, 99999);
texts_maze[1].text = DSUtil.Format(324, 0);
}
else
{
texts_maze[0].text = DSUtil.Format(323, my.Rank);
texts_maze[1].text = DSUtil.Format(324, my.Scores[0]);
}
});
break;
case eDungeon.d3_Nightmare:
break;
case eDungeon.d4_Wave:
break;
}
}
public void Select_Lv(int lv)
{
@ -54,10 +85,17 @@ public class MapChoiceUI_Dungeon : uScrollViewMgr
public void OnClick_GoDungeon()
{
var sdata = ServerInfo.Ins.m_ServerData;
var mapData = table_battlemapconfig.Ins.Get_Data(SelectMapID);
// 웨이브는 무한 입장 가능
if (mapData.n_TicketID == 0 || ServerInfo.Ins.m_ServerData.Check_ItemAmount(mapData.n_TicketID, 1))
if (mapData.n_TicketID == 0 || sdata.Check_ItemAmount(mapData.n_TicketID, 1))
{
if (mapData.e_Dungeon == eDungeon.d2_Maze)
{ // 미궁은 입장 시 입장권 사용
sdata.Use_Item(mapData.n_TicketID, 1);
ServerInfo.Ins.Write(null, false);
}
NewGameUI.Ins.m_MapChoiceUI.OnClick_Back();
MyValue.MyChoiceMapData.n_Difficult = 1; // TODO 정인호 : 나중에 선택한 난이도 넣어줄 것