Show / Hide Table of Contents

    Interface ICustomProperties

    Custom properties that you can attach to entities and can be used to get/set values during the game.

    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public interface ICustomProperties

    Properties

    | Improve this Doc View Source

    Bools

    Gets a collection of properties which type is a boolean (true/false).

    Declaration
    ICustomPropertiesPerType<bool> Bools { get; }
    Property Value
    Type Description
    ICustomPropertiesPerType<System.Boolean>

    The bools.

    | Improve this Doc View Source

    Entities

    Gets a collection of properties which type is an entity (can be any game object).

    Declaration
    ICustomPropertiesPerType<IEntity> Entities { get; }
    Property Value
    Type Description
    ICustomPropertiesPerType<IEntity>

    The entities.

    | Improve this Doc View Source

    Floats

    Gets a collection of properties which type is a float (numbers with decimal point).

    Declaration
    ICustomPropertiesPerType<float> Floats { get; }
    Property Value
    Type Description
    ICustomPropertiesPerType<System.Single>

    The floats.

    | Improve this Doc View Source

    Ints

    Gets a collection of properties which type is an integer (whole numbers).

    Declaration
    ICustomPropertiesPerType<int> Ints { get; }
    Property Value
    Type Description
    ICustomPropertiesPerType<System.Int32>

    The ints.

    | Improve this Doc View Source

    Strings

    Gets a collection of properties which type is a string (text).

    Declaration
    ICustomPropertiesPerType<string> Strings { get; }
    Property Value
    Type Description
    ICustomPropertiesPerType<System.String>

    The strings.

    Methods

    | Improve this Doc View Source

    CopyFrom(ICustomProperties)

    Copies the custom properties from the specified object into this object. This will override existing values, but will not delete custom properties with no equivalent in the given object.

    Declaration
    void CopyFrom(ICustomProperties properties)
    Parameters
    Type Name Description
    ICustomProperties properties

    Properties.

    | Improve this Doc View Source

    RegisterCustomData(ICustomSerializable)

    Declaration
    void RegisterCustomData(ICustomSerializable customData)
    Parameters
    Type Name Description
    ICustomSerializable customData
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX