public static string GetCrateDisplayName(string crateId) { IDataController dataController = Service.Get <IDataController>(); CrateVO crateVO = dataController.Get <CrateVO>(crateId); return(LangUtils.GetCrateDisplayName(crateVO)); }
public static string GetCrateDisplayName(string crateId) { StaticDataController staticDataController = Service.StaticDataController; CrateVO crateVO = staticDataController.Get <CrateVO>(crateId); return(LangUtils.GetCrateDisplayName(crateVO)); }
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); }
public unsafe static long $Invoke14(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(LangUtils.GetCrateDisplayName(Marshal.PtrToStringUni(*(IntPtr *)args)))); }
public unsafe static long $Invoke13(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(LangUtils.GetCrateDisplayName((CrateVO)GCHandledObjects.GCHandleToObject(*args)))); }