C#编辑CS插件

扫码查看
本文介绍了C#编辑CS插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,有人可以帮我如何编辑一个CS文件用于未启用的游戏?

Hello, can someone help me how i can edit one cs file for unturned game? 

CommandLPX.cs  此文件/命令在游戏中创建组"/lpx adduser < player> < group>"我想将其更改为"/lpx adduser< group>".我怎么能 在没有PlayerName的情况下使用它.自动填写who命令引发的名称.

CommandLPX.cs this file/command make groups ingame "/lpx adduser <player> <group>" and I want change it for "/lpx adduser <group>". How I can use this without PlayerName. To automatically fill the name of who command raises.

推荐答案

谢谢您的发帖.

建议使用书面扩展方法.它可以帮助您避免传递第一个参数,并自动填充who命令引发的第一个参数.

It recommended that written expansion method . It can help you avoid passing the first argument and automatically fill first argument of who command raises.

学习指南:  MSDN 扩展方法(C#编程指南)

最好的问候,
王丽

Best Regards,
Li Wang


这篇关于C#编辑CS插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 20:34
查看更多