feat: add initial People Playground mod development kit
This commit is contained in:
36
extracted_wiki_content/internalReference/map.txt
Normal file
36
extracted_wiki_content/internalReference/map.txt
Normal file
@@ -0,0 +1,36 @@
|
||||
URL: https://wiki.studiominus.nl/internalReference/Map.html
|
||||
Title: People Playground Modding - Map
|
||||
==================================================
|
||||
|
||||
public class Map
|
||||
Inherits ScriptableObject
|
||||
[CreateAssetMenu(menuName = "PPG/Map")]
|
||||
A map
|
||||
Fields
|
||||
public string UniqueIdentity
|
||||
[ContextMenuItem("Regenerate identity", nameof(RegenerateIdentity))]
|
||||
A globally unique identity. Automatically generated.
|
||||
|
||||
public string Description
|
||||
[Multiline]
|
||||
Short description of the map.
|
||||
|
||||
public string Author
|
||||
Name of the creator of the map.
|
||||
|
||||
public Sprite Thumbnail
|
||||
Thumbnail of the map 512x512
|
||||
|
||||
public Sprite Preview
|
||||
Large preview image of the map.
|
||||
|
||||
public GameObject Prefab
|
||||
[Space]
|
||||
Reference to the prefab of the map to instantiate. This can be null if the InstantiateOverride delegate isn't null
|
||||
|
||||
public MapInternals EditorMapAssembly
|
||||
Used to assemble an editor map into a fully functional map
|
||||
|
||||
public Action<Transform> InstantiateOverride
|
||||
[System.NonSerialized]
|
||||
If not null, the map loader will use this function instead of Prefab
|
||||
Reference in New Issue
Block a user