/// <summary> /// 观察一个数据层 /// 当数据层冒泡时,会自动调用相应的处理函数 /// </summary> /// <param name="_uuid">model的uuid</param> /// <param name="_action">行为</param> protected void addObserver(string _uuid, string _action, Action <Model.Status, object> _handler) { Model.Inner inner = board_.getModelCenter().FindUnit(_uuid); if (null == inner) { return; } inner.AddObserver(_action, _handler); }