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.
 
 
 
 
 
 

34 lines
699 B

/*
Sog 游戏基础库
2016 by zouwei
*/
using System;
using System.Net;
using System.Text;
namespace Sog
{
// 支持的协议类型
public class ProtoPackerFactory : Singleton<ProtoPackerFactory>
{
private SProtoPacker m_sprotoPacker = new SProtoPacker();
private ProtoBufPacker m_protoBufPacker = new ProtoBufPacker();
private ProtoCSStructPacker m_protocsstructPacker = new ProtoCSStructPacker();
//
public ProtoBufPacker GetProtoBufPacker()
{
return m_protoBufPacker;
}
public ProtoCSStructPacker GetProtoCSStructPacker()
{
return m_protocsstructPacker;
}
}
}