Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsSavableItem Class Reference

Item of the plugin, the state of which can be saved. More...

Public Member Functions

 OnlineMapsSavableItem (string name, string label, Func< OnlineMapsJSONItem > jsonCallback)
 Constructor.
 
 OnlineMapsSavableItem (string label, Action invokeCallback)
 Constructor.
 

Public Attributes

bool enabled = true
 Whether save is selected.
 
Action invokeCallback
 Called when saving state.
 
Func< OnlineMapsJSONItemjsonCallback
 Callback that is called to save.
 
Action< OnlineMapsJSONObjectloadCallback
 Callback that is called to load.
 
string label
 The label that is shown to the user.
 
string name
 Name of item.
 
int priority
 Priority.
 

Detailed Description

Item of the plugin, the state of which can be saved.

Constructor & Destructor Documentation

◆ OnlineMapsSavableItem() [1/2]

OnlineMapsSavableItem.OnlineMapsSavableItem ( string name,
string label,
Func< OnlineMapsJSONItem > jsonCallback )

Constructor.

Parameters
nameName of item
labelThe label that is shown to the user
jsonCallbackCallback that is called to save

◆ OnlineMapsSavableItem() [2/2]

OnlineMapsSavableItem.OnlineMapsSavableItem ( string label,
Action invokeCallback )

Constructor.

Parameters
labelThe label that is shown to the user
invokeCallbackCallback that is called to save