Wiki

Clone wiki

RogueSharp / RogueSharp / Map / Copy_1

MapCopy Method (IMap, Int32, Int32)

Copies the Cell properties of a smaller source Map into this destination Map at the specified location

Namespace: RogueSharp
Assembly:

Syntax

public void Copy(
    IMap sourceMap,
    int left,
    int top
)

Parameters

sourceMap

Type: RogueSharpIMap
An IMap which must be of smaller size and able to fit in this destination Map at the specified location

left

Type: SystemInt32
Optional parameter defaults to 0 if not provided. X location of the Cell to start copying parameters to, starting with 0 as the farthest left

top

Type: SystemInt32
Optional parameter defaults to 0 if not provided. Y location of the Cell to start copying parameters to, starting with 0 as the top

Implements

IMapCopy(IMap, Int32, Int32)

Exceptions

Exception Condition
ArgumentNullException Thrown on null source map
ArgumentException Thrown on invalid source map dimensions

See Also

Reference

Map Class
RogueSharp Namespace

[5]: 2014-2016 Faron Bracy

Updated