KCP gameserver with packet dispatch, scene streaming, combat, gacha and the shop, plus a small HTTP server for the login flow and the wish history page. Game data under assets is pulled out of the client instead of being typed by hand. The excel tables come from the packed bin container and the spawn points from the compiled scene scripts.
14 lines
324 B
C#
14 lines
324 B
C#
using Yuanshen.Protocol;
|
|
|
|
namespace Yuanshen.Gameserver.Controllers.Attributes;
|
|
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
|
internal class NetCommandAttribute : Attribute
|
|
{
|
|
public CmdType CmdType { get; }
|
|
|
|
public NetCommandAttribute(CmdType cmdType)
|
|
{
|
|
CmdType = cmdType;
|
|
}
|
|
}
|