Class GridType
Namespace: DiceRolling.Grids
Assembly: dice-rolling.dll
[Tool]
[GlobalClass]
[ScriptPath("res://features/Grid/GridType.cs")]
public class GridType : Resource, IDisposable, IGrid, IGridConfiguration, IGridCells
Inheritance
object ← GodotObject ← RefCounted ← Resource ← GridType
Implements
IDisposable,
IGrid,
IGridConfiguration,
IGridCells
Inherited Members
Show/Hide Inherited Members
Resource._GetRid(),
Resource._ResetState(),
Resource._SetPathCache(string),
Resource._SetupLocalToScene(),
Resource.TakeOverPath(string),
Resource.SetPathCache(string),
Resource.GetRid(),
Resource.GetLocalScene(),
Resource.SetupLocalToScene(),
Resource.ResetState(),
Resource.SetIdForPath(string, string),
Resource.GetIdForPath(string),
Resource.IsBuiltIn(),
Resource.GenerateSceneUniqueId(),
Resource.EmitChanged(),
Resource.Duplicate(bool),
Resource.EmitSignalChanged(),
Resource.EmitSignalSetupLocalToSceneRequested(),
Resource.InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant),
Resource.HasGodotClassMethod(in godot_string_name),
Resource.HasGodotClassSignal(in godot_string_name),
Resource.ResourceLocalToScene,
Resource.ResourcePath,
Resource.ResourceName,
Resource.ResourceSceneUniqueId,
Resource.Changed,
Resource.SetupLocalToSceneRequested,
RefCounted.InitRef(),
RefCounted.Reference(),
RefCounted.Unreference(),
RefCounted.GetReferenceCount(),
RefCounted.InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant),
RefCounted.HasGodotClassMethod(in godot_string_name),
RefCounted.HasGodotClassSignal(in godot_string_name),
GodotObject.NotificationPostinitialize,
GodotObject.NotificationPredelete,
GodotObject.NotificationExtensionReloaded,
GodotObject.InstanceFromId(ulong),
GodotObject.IsInstanceIdValid(ulong),
GodotObject.IsInstanceValid(GodotObject?),
GodotObject.WeakRef(GodotObject?),
GodotObject.Dispose(),
GodotObject.Dispose(bool),
GodotObject.ToString(),
GodotObject.ToSignal(GodotObject, StringName),
GodotObject._Get(StringName),
GodotObject._GetPropertyList(),
GodotObject._IterGet(Variant),
GodotObject._IterInit(Array),
GodotObject._IterNext(Array),
GodotObject._Notification(int),
GodotObject._PropertyCanRevert(StringName),
GodotObject._PropertyGetRevert(StringName),
GodotObject._Set(StringName, Variant),
GodotObject._ValidateProperty(Dictionary),
GodotObject.Free(),
GodotObject.GetClass(),
GodotObject.IsClass(string),
GodotObject.Set(StringName, Variant),
GodotObject.Get(StringName),
GodotObject.SetIndexed(NodePath, Variant),
GodotObject.GetIndexed(NodePath),
GodotObject.GetPropertyList(),
GodotObject.GetMethodList(),
GodotObject.PropertyCanRevert(StringName),
GodotObject.PropertyGetRevert(StringName),
GodotObject.Notification(int, bool),
GodotObject.GetInstanceId(),
GodotObject.SetScript(Variant),
GodotObject.GetScript(),
GodotObject.SetMeta(StringName, Variant),
GodotObject.RemoveMeta(StringName),
GodotObject.GetMeta(StringName, Variant),
GodotObject.HasMeta(StringName),
GodotObject.GetMetaList(),
GodotObject.AddUserSignal(string, Array),
GodotObject.HasUserSignal(StringName),
GodotObject.RemoveUserSignal(StringName),
GodotObject.EmitSignal(StringName, params Variant[]),
GodotObject.EmitSignal(StringName, ReadOnlySpan<Variant>),
GodotObject.Call(StringName, params Variant[]),
GodotObject.Call(StringName, ReadOnlySpan<Variant>),
GodotObject.CallDeferred(StringName, params Variant[]),
GodotObject.CallDeferred(StringName, ReadOnlySpan<Variant>),
GodotObject.SetDeferred(StringName, Variant),
GodotObject.Callv(StringName, Array),
GodotObject.HasMethod(StringName),
GodotObject.GetMethodArgumentCount(StringName),
GodotObject.HasSignal(StringName),
GodotObject.GetSignalList(),
GodotObject.GetSignalConnectionList(StringName),
GodotObject.GetIncomingConnections(),
GodotObject.Connect(StringName, Callable, uint),
GodotObject.Disconnect(StringName, Callable),
GodotObject.IsConnected(StringName, Callable),
GodotObject.HasConnections(StringName),
GodotObject.SetBlockSignals(bool),
GodotObject.IsBlockingSignals(),
GodotObject.NotifyPropertyListChanged(),
GodotObject.SetMessageTranslation(bool),
GodotObject.CanTranslateMessages(),
GodotObject.Tr(StringName, StringName),
GodotObject.TrN(StringName, StringName, int, StringName),
GodotObject.GetTranslationDomain(),
GodotObject.SetTranslationDomain(StringName),
GodotObject.IsQueuedForDeletion(),
GodotObject.CancelFree(),
GodotObject.EmitSignalScriptChanged(),
GodotObject.EmitSignalPropertyListChanged(),
GodotObject.InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant),
GodotObject.HasGodotClassMethod(in godot_string_name),
GodotObject.HasGodotClassSignal(in godot_string_name),
GodotObject.NativeInstance,
GodotObject.ScriptChanged,
GodotObject.PropertyListChanged,
object.Equals(object?),
object.Equals(object?, object?),
object.GetHashCode(),
object.GetType(),
object.MemberwiseClone(),
object.ReferenceEquals(object?, object?),
object.ToString()
Constructors
GridType()
public GridType()
GridType(int, int, int, string)
public GridType(int rows, int columns, int offset, string prefix)
Parameters
rows
int
columns
int
offset
int
prefix
string
Properties
Cells
Células da grid.
[Export(PropertyHint.None, "")]
public Array<int> Cells { get; set; }
Property Value
Array<int>
CharacterStore
[Export(PropertyHint.None, "")]
public CharacterStore? CharacterStore { get; set; }
Property Value
Columns
Número de colunas da grid.
[Export(PropertyHint.None, "")]
public int Columns { get; set; }
Property Value
Direction
Direção da grid.
[Export(PropertyHint.Enum, "LeftToRight,RightToLeft")]
public GridDirection Direction { get; set; }
Property Value
Offset
Offset da grid.
[Export(PropertyHint.None, "")]
public int Offset { get; set; }
Property Value
Prefix
Prefixo da grid.
[Export(PropertyHint.None, "")]
public string Prefix { get; set; }
Property Value
Rows
Número de linhas da grid.
[Export(PropertyHint.None, "")]
public int Rows { get; set; }
Property Value
Methods
EmitSignalGridChanged()
protected void EmitSignalGridChanged()
GetCell(int, int)
Obtém o valor de uma célula.
public int GetCell(int row, int column)
Parameters
row
int
Linha da célula.
column
int
Coluna da célula.
Returns
Valor da célula.
GetCellIndex(int, int)
Obtém o índice de uma célula.
public int GetCellIndex(int row, int column)
Parameters
row
int
Linha da célula.
column
int
Coluna da célula.
Returns
Índice da célula.
SetCell(int, int, int)
Define o valor de uma célula.
public void SetCell(int row, int column, int value)
Parameters
row
int
Linha da célula.
column
int
Coluna da célula.
value
int
Valor da célula.
ValidateConstructor()
public void ValidateConstructor()
GridChanged
public event GridType.GridChangedEventHandler GridChanged