Table of Contents

Delegate GetMountableDelegate

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

This method needs to find your mountable based on the tree attribute data, which you can write to in IMountable.MountableToTreeAttributes() For example if its an entity, you will want to store the entity id, then this method can simply contain

return world.GetEntityById(tree.GetLong("entityId"));
public delegate IMountableSeat GetMountableDelegate(IWorldAccessor world, TreeAttribute tree)

Parameters

world IWorldAccessor
tree TreeAttribute

Returns

IMountableSeat
Extension Methods