예제 #1
0
        public static string GetCrateDisplayName(string crateId)
        {
            IDataController dataController = Service.Get <IDataController>();
            CrateVO         crateVO        = dataController.Get <CrateVO>(crateId);

            return(LangUtils.GetCrateDisplayName(crateVO));
        }
예제 #2
0
        public static string GetCrateDisplayName(string crateId)
        {
            StaticDataController staticDataController = Service.StaticDataController;
            CrateVO crateVO = staticDataController.Get <CrateVO>(crateId);

            return(LangUtils.GetCrateDisplayName(crateVO));
        }
예제 #3
0
        public static bool TrySetupConflictEndedRewardView(List <string> rewardUids, UXLabel label, UXSprite sprite)
        {
            if (rewardUids == null || rewardUids.Count == 0)
            {
                return(false);
            }
            CrateVO optional = Service.Get <IDataController>().GetOptional <CrateVO>(rewardUids[0]);

            if (optional == null)
            {
                return(false);
            }
            string uid = optional.Uid;

            label.Text = LangUtils.GetCrateDisplayName(uid);
            RewardUtils.SetCrateIcon(sprite, optional, AnimState.Closed);
            return(true);
        }
예제 #4
0
 public unsafe static long $Invoke14(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(LangUtils.GetCrateDisplayName(Marshal.PtrToStringUni(*(IntPtr *)args))));
 }
예제 #5
0
 public unsafe static long $Invoke13(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(LangUtils.GetCrateDisplayName((CrateVO)GCHandledObjects.GCHandleToObject(*args))));
 }