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.
37 lines
776 B
37 lines
776 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 Friend
|
|
{
|
|
public static class FriendPlayerUtils
|
|
{
|
|
public static string GetPlayerLanguageStr(PlayerInfoFriend player, string content)
|
|
{
|
|
if(string.IsNullOrEmpty(player.Lang))
|
|
{
|
|
player.Lang = "tk";
|
|
}
|
|
|
|
return Sog.Lang.LanguageUtils.GetLanguageString(content, player.Lang);
|
|
}
|
|
|
|
|
|
public static string GetPlayerLanguageStr(string lang, string content)
|
|
{
|
|
return Sog.Lang.LanguageUtils.GetLanguageString(content, lang);
|
|
}
|
|
|
|
}
|
|
}
|
|
|