コード例 #1
0
    /// <summary>
    /// Called when the player cancels this order.
    /// </summary>
    public void OnCancelled()
    {
        CUnit builder = mWorld.GetEntity <CUnit>(mBuilderID);

        if (builder != null)
        {
            builder.AbandonOrder();
        }

        mState           = EState.CANCELLED;
        mBuilderID       = -1;
        mItemBlueprintID = -1;

        mWorld.RemoveBuildOrder(this);
    }