Class DeedFactory
Inheritance
System.Object
DeedFactory
Namespace: Eco.Gameplay.Property
Assembly: Eco.Gameplay.dll
Syntax
public static class DeedFactory : Object
Methods
CreateDeed(IAlias, User, String, PropertyType)
Creates a new deed with the specified IAlias as owner and User as creator. The owner should never be null, in case the owner is null, the deed will remain unowned and also the name of the deed will be default (e.g.: Deed 1), unless the deedName is set. If the owner is setted then it would be forced to be the owner of the deed and it would take its name as reference to create a deed name (e.g.: Playertropolis). The creator is the first user that made the deed, also in case of changing the owner, the creator does not retain any rights in the deed, only the title as the creator.
Declaration
public static Deed CreateDeed(IAlias owner, User creator, string deedName = null, PropertyType propertyType)
Parameters
Type | Name | Description |
---|---|---|
IAlias | owner | |
User | creator | |
System.String | deedName | |
PropertyType | propertyType |
Returns
Type | Description |
---|---|
Deed |
CreateDeed(User, String, PropertyType)
Creates a new deed with the specified User as the owner and creator.
Declaration
public static Deed CreateDeed(User ownerAndCreator, string deedName = null, PropertyType propertyType)
Parameters
Type | Name | Description |
---|---|---|
User | ownerAndCreator | |
System.String | deedName | |
PropertyType | propertyType |
Returns
Type | Description |
---|---|
Deed |