AngeliA
Search Results for

    Show / Hide Table of Contents

    Class World

    Instance of a 128x128 map data

    Constructors

    World()

    Instance of a 128x128 map data

    Declaration
    public World()

    World(Int3)

    Instance of a 128x128 map data

    Declaration
    public World(Int3 pos)
    Parameters
    Type Name Description
    Int3 pos

    Position in world space (1 world space = 256 * 128 global space)

    Properties

    Backgrounds

    ID of all background blocks (index 0 means bottom-left, index 1 make it goes right)

    Declaration
    public int[] Backgrounds { get; set; }

    Elements

    ID of all element blocks (index 0 means bottom-left, index 1 make it goes right)

    Declaration
    public int[] Elements { get; set; }

    Entities

    ID of all entity blocks (index 0 means bottom-left, index 1 make it goes right)

    Declaration
    public int[] Entities { get; set; }

    Levels

    ID of all level blocks (index 0 means bottom-left, index 1 make it goes right)

    Declaration
    public int[] Levels { get; set; }

    WorldPosition

    Position for the bottom-left of the world in world space (1 world space = 256 * 128 global space)

    Declaration
    public Int3 WorldPosition { get; set; }

    Methods

    Clear(Int3?)

    Reset all block data inside this world data

    Declaration
    public void Clear(Int3? pos = null)
    Parameters
    Type Name Description
    Int3? pos

    Set new world position. Set to null to not clear world position

    ContainsBlock(int, BlockType)

    True if the given block ID exists inside this world

    Declaration
    public bool ContainsBlock(int blockID, BlockType type)
    BlockType type

    Type of the block

    CopyFrom(World)

    Declaration
    public void CopyFrom(World source)

    EmptyCheck()

    True if the world data is empty

    Declaration
    public bool EmptyCheck()

    LoadFromDisk(string, int, int, int)

    Declaration
    public bool LoadFromDisk(string filePath, int worldX, int worldY, int worldZ)

    SaveToDisk(string)

    Declaration
    public void SaveToDisk(string filePath)
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค