ModuleServerApi - Property
Class representing the ModuleServerApi Property.
Functions
setValue
Set the value of the property.
property.setValue(value);
| Argument | Type | Description |
|---|---|---|
| value | any | New value for the property. |
getValue
Get the value of the property.
property.getValue();
Returns any Value of the property
asString
Get the value of the property as a string.
property.asString();
Returns string Value of the property
asNumber
Get the value of the property as a number.
property.asNumber();
Returns number Value of the property
asBoolean
Get the value of the property as a boolean.
property.asBoolean();
Returns boolean Value of the property
asFile
Get the value of the property as a file.
property.asFile();
Returns { name:string, address:string } Value of the property
asGiphy
Get the value of the property as a giphy.
property.asGiphy();
Returns { name:string, address:string } Value of the property
Parameters
title
Title of the property
property.title as string;
value
Raw value of the property
property.value as any;
description
Description of the property
property.description as string;
step?
Step size of the property
property.step as number;
min?
The minimal value of the property
property.min as number;
max?
The maximal value of the property
property.max as number;
allowedValues?
Title of the property
property.allowedValues as { id: string; name: string };
allowedTypes?
Title of the property
property.allowedTypes as string[];
Getting Started
Module Development
- Introduction
- V2 Module Structure
- V1 Module Structure
- Development environment/Building
- Module Config
- Module Debugging
- GetiyoModuleTool
- Bug/Feature Reporting
- Contact Details
ModuleServerAPI
ModuleServerAPI GameLib
ModuleClientAPI
ModuleApi Shared
© Vix Entertainment 2023 - © Mooren Productief 2023 - All rights reserved