コード例 #1
0
        public static FactorioCommandBuilder SilentCommand()
        {
            var cb = new FactorioCommandBuilder();
            var sb = cb.sb;

            sb.Append("/silent-command ");

            return(cb);
        }
コード例 #2
0
        public static FactorioCommandBuilder ServerCommand(string functionName)
        {
            var cb = new FactorioCommandBuilder();
            var sb = cb.sb;

            sb.Append("/silent-command local s = ServerCommands s = s and s.");
            sb.Append(functionName);
            sb.Append('(');

            cb.appendBracket = true;

            return(cb);
        }