简体   繁体   English

在XNA中创建没有Xbox Live的LAN会话?

[英]Create LAN session without Xbox Live in XNA?

Is there a way to create a LAN session on XNA without having to own an Xbox Live account? 有没有一种方法可以在XNA上创建LAN会话而不必拥有Xbox Live帐户?

I'm currently running a snake game on XNA but whenever I create a LAN Session it asks me that the user is not 'Signed in to an Xbox Live account'. 我当前正在XNA上运行蛇游戏,但是每当我创建LAN会话时,它都会问我该用户不是“登录Xbox Live帐户”。

So the question is, is there any other way to host a LAN session on C# without passing through XNA's restrictions? 因此,问题是,是否有其他方法可以在C#上承载LAN会话而无需通过XNA的限制?

Yes there is and you don't need to use C++ for that. 是的,有,您不需要为此使用C ++。 You can either use C# .NET classes to build lan support from scratch (lots of work) or you can use lidgren library (used by MonoGame ): http://code.google.com/p/lidgren-network-gen3/ 您可以使用C#.NET类从头开始构建局域网支持(很多工作),也可以使用lidgren库(供MonoGame使用 ): http : //code.google.com/p/lidgren-network-gen3/

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM