Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X. https://www.openra.net
  • C# 77.2%
  • Lua 18.1%
  • Fluent 3.6%
  • Shell 0.5%
  • Objective-C 0.1%
  • Other 0.2%
Find a file
RoosterDragon 8eac2bb690 Parse from spans, not strings.
Update various parts of the codebase to support parsing from spans, rather than strings. This allows values to be parsed directly from a text buffer in some cases, without needing to materialize an intermediate string to perform the parse.

- Numeric Parse/TryParse methods in Exts accept a span, not a string.
- Hotkey, TileReference, Color, WDist: TryParse methods accept a span, not a string.
- Riser splits into spans, rather than splitting to strings.
- Some callsites pass a span for parsing where they can instead of allocating a string.
- FieldLoader learns to use spans for extracting, splitting and parsing text values.

Additionally, FieldLoader learns dedicated parse methods for some types (byte, short) and forgets others (long). This is to provide fast paths for types used in the default mods, other types can use the TypeDescriptor fallback. Some of the action delegates in FieldLoader change to make more sense and support the parsing changes.
2026-09-01 15:26:51 +03:00
.github
.vscode
glsl
mods
OpenRA.Game
OpenRA.Launcher
OpenRA.Mods.Cnc
OpenRA.Mods.Common
OpenRA.Mods.D2k
OpenRA.Platforms.Default
OpenRA.Server
OpenRA.Test
OpenRA.Utility
OpenRA.WindowsLauncher
packaging
.editorconfig
.gitattributes
.gitignore
.kateproject
AUTHORS
CODE_OF_CONDUCT.md
configure-system-libraries.sh
CONTRIBUTING.md
COPYING
Directory.Build.props
fetch-geoip.sh
global mix database.dat
INSTALL.md
launch-dedicated.cmd
launch-dedicated.sh
launch-game.cmd
launch-game.sh
make.cmd
make.ps1
Makefile
omnisharp.json
OpenRA.slnx
README.md
utility.cmd
utility.sh
VERSION

OpenRA

A Libre/Free Real Time Strategy game engine supporting early Westwood classics.

Please read the FAQ in our Wiki and report problems at https://github.com/OpenRA/OpenRA/issues.

Join the Forum for discussion.

Play

Distributed mods include a reimagining of

  • Command & Conquer: Red Alert
  • Command & Conquer: Tiberian Dawn
  • Dune 2000

EA has not endorsed and does not support this product.

Check our Playing the Game Guide to win multiplayer matches.

Contribute

Mapping

  • We offer a Mapping Tutorial as you can change gameplay drastically with custom rules.
  • For scripted mission have a look at the Lua API.
  • If you want to share your maps with the community, upload them at the OpenRA Resource Center.

Modding

Support

  • Sponsor a mirror server if you have some bandwidth to spare.
  • You can immediately set up a Dedicated Game Server.

License

Copyright (c) OpenRA Developers and Contributors This file is part of OpenRA, which is free software. It is made available to you under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. For more information, see COPYING.

Sponsors

Free code signing on Windows provided by SignPath.io, certificate by SignPath Foundation.