/// <summary> /// Initializes a new instance of the <see cref="RobotObjectConnectionStateEventArgs"/> class. /// </summary> /// <param name="response">The response.</param> internal RobotObjectConnectionStateEventArgs(ExternalInterface.ConnectCubeResponse response) : base(ObjectEventType.ObjectConnectionState) { Connected = response.Success; FactoryId = response.FactoryId; ObjectId = (int)response.ObjectId; ObjectType = ObjectType.BlockLightcube1; }
/// <summary> /// Called when cube is explicitly connected. /// </summary> /// <param name="response">The response.</param> internal void OnCubeConnected(ExternalInterface.ConnectCubeResponse response) { RaiseRobotEvents(ObjectConnectionState, new RobotObjectConnectionStateEventArgs(response)); }