FZ_FormBase.CopyUnitFigure

Copies unit figure

Public Shared Function CopyUnitFigure( _
    ByVal srcSceneNo As Integer, _
    ByVal srcUnitNo As Integer, _
    ByVal srcFigureNo As Integer, _
    ByVal destUnitNo As Integer, _
    ByVal destFigureNo As Integer, _
) As Integer

Parameters
srcSceneNo
Scene number of the copy source
Input
srcUnitNo
Unit number of the copy source
Input
srcFigureNo
Figure number of the copy source
Input
destUnitNo
Unit number of the copy destination
Input
destFigureNo
Figure number of the copy destination
Input

Return Value
Returns 0 when copying of unit figure succeeded.
Otherwise returns a non-zero value.

Description
Copies the unit figure of the specified copy source scene number/unit number/figure number to the unit figure of the specified copy destination unit number/figure number.
The destination scene is the current scene.

Example
    Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

        ' Copies the unit figure of the scene number 0/unit number 0/figure number 0 to the unit figure of the unit number 1/figure number 2
        CopyUnitFigure(0, 0, 0, 1, 2)

    End Sub