C# Класс Bricklayer.Common.World.Map

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
random System.Random
width int

Открытые методы

Метод Описание
InBounds ( int x, int y, int z = 1 ) : bool

Determines if a grid position is in the bounds of the map

InDrawBounds ( int x, int y ) : bool

Determines if a grid position is in the bounds of the drawing area (The map, but not the border)

PlayerFromID ( int id ) : Player

Returns a player from an ID

Описание методов

InBounds() публичный Метод

Determines if a grid position is in the bounds of the map
public InBounds ( int x, int y, int z = 1 ) : bool
x int
y int
z int
Результат bool

InDrawBounds() публичный Метод

Determines if a grid position is in the bounds of the drawing area (The map, but not the border)
public InDrawBounds ( int x, int y ) : bool
x int
y int
Результат bool

PlayerFromID() публичный Метод

Returns a player from an ID
public PlayerFromID ( int id ) : Player
id int
Результат Bricklayer.Common.Entities.Player

Описание свойств

random защищенное свойство

protected Random,System random
Результат System.Random

width защищенное свойство

protected int width
Результат int