You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
810 B

/*
Sog 游戏基础库
2016 by zouwei
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.IO;
using Sog;
using ProtoCSStruct;
using Sog.IO;
namespace World
{
public static class WorldPlayerUtils
{
public static string GetPlayerLanguageStr(PlayerInfoWorld player, string content)
{
if(string.IsNullOrEmpty(player.Lang))
{
player.Lang = Sog.Lang.LanguageUtils.DEFAULT_LANGUAGE;
}
return Sog.Lang.LanguageUtils.GetLanguageString(content, player.Lang);
}
public static string GetPlayerLanguageStr(string lang, string content)
{
return Sog.Lang.LanguageUtils.GetLanguageString(content, lang);
}
}
}