Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Class TileProperties

    Properties for individual tiles within a tileset.

    Inheritance
    object
    TileProperties
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: PopcorningGuineaPig.Engine.Gameplay
    Assembly: PopcorningGuineaPig.Engine.dll
    Syntax
    public class TileProperties

    Properties

    | Edit this page View Source

    AnimationFrames

    Declaration
    public List<int> AnimationFrames { get; set; }
    Property Value
    Type Description
    List<int>
    | Edit this page View Source

    AnimationSpeed

    Declaration
    public float AnimationSpeed { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    IsAnimated

    Declaration
    public bool IsAnimated { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsInteractable

    Declaration
    public bool IsInteractable { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsSolid

    Declaration
    public bool IsSolid { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsWalkable

    Declaration
    public bool IsWalkable { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Opacity

    Declaration
    public float Opacity { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    Properties

    Declaration
    public Dictionary<string, string> Properties { get; set; }
    Property Value
    Type Description
    Dictionary<string, string>
    | Edit this page View Source

    Tint

    Declaration
    public Color Tint { get; set; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    Type

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetBoolProperty(string, bool)

    Gets a property value as a boolean.

    Declaration
    public bool GetBoolProperty(string key, bool defaultValue = false)
    Parameters
    Type Name Description
    string key

    Property key

    bool defaultValue

    Default value if property not found or invalid

    Returns
    Type Description
    bool

    Boolean value

    | Edit this page View Source

    GetFloatProperty(string, float)

    Gets a property value as a float.

    Declaration
    public float GetFloatProperty(string key, float defaultValue = 0)
    Parameters
    Type Name Description
    string key

    Property key

    float defaultValue

    Default value if property not found or invalid

    Returns
    Type Description
    float

    Float value

    | Edit this page View Source

    GetIntProperty(string, int)

    Gets a property value as an integer.

    Declaration
    public int GetIntProperty(string key, int defaultValue = 0)
    Parameters
    Type Name Description
    string key

    Property key

    int defaultValue

    Default value if property not found or invalid

    Returns
    Type Description
    int

    Integer value

    | Edit this page View Source

    GetProperty(string)

    Gets a custom property value.

    Declaration
    public string GetProperty(string key)
    Parameters
    Type Name Description
    string key

    Property key

    Returns
    Type Description
    string

    Property value, or empty string if not found

    | Edit this page View Source

    SetProperty(string, string)

    Sets a custom property value.

    Declaration
    public void SetProperty(string key, string value)
    Parameters
    Type Name Description
    string key

    Property key

    string value

    Property value

    • Edit this page
    • View Source
    In this article
    Back to top © 2024 Popcorning Guinea Pig Game Engine. A custom C# game engine for indie developers.