OpenRA.Order.TryGetActorFromUInt C# (CSharp) Method

TryGetActorFromUInt() static private method

static private TryGetActorFromUInt ( World world, uint aID, OpenRA.Actor &ret ) : bool
world World
aID uint
ret OpenRA.Actor
return bool
        static bool TryGetActorFromUInt(World world, uint aID, out Actor ret)
        {
            if (aID == uint.MaxValue)
            {
                ret = null;
                return true;
            }

            ret = world.GetActorById(aID);
            return ret != null;
        }