order validation; don't hold refs in local orders; etc

This commit is contained in:
Chris Forbes
2009-12-02 19:10:12 +13:00
parent e24d1938a8
commit fb7f1f2817
2 changed files with 41 additions and 13 deletions

View File

@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using IjwFramework.Types;
using OpenRa.Game.GameRules;
using OpenRa.Game.Traits;
using IjwFramework.Types;
using System.Diagnostics;
namespace OpenRa.Game
{
@@ -12,6 +10,12 @@ namespace OpenRa.Game
{
public static void ProcessOrder( Order order )
{
if (!order.Validate())
{
/* todo: log this if we care */
return;
}
switch( order.OrderString )
{
case "Move":