Class ResidencyExtensions
Inheritance
System.Object
ResidencyExtensions
Assembly: Eco.Gameplay.dll
Syntax
public static class ResidencyExtensions : Object
Methods
GetResidencyHouse(User)
Declaration
public static Deed GetResidencyHouse(this User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
IsResident(User, Deed)
Declaration
public static bool IsResident(this User user, Deed deed)
Parameters
Type |
Name |
Description |
User |
user |
|
Deed |
deed |
|
Returns
Type |
Description |
System.Boolean |
|
IsResidentType(User, SpecialResidents, IEnumerable<Deed>)
Check if a user belongs to a resident type (resident, renter, landlord, owner or invited)
owner: someone who owns the property
landlord: an owner + has non-owning residents
resident: a person who is a resident on the property
renter: a person who is a resident and not an owner
Owner or Landlord can't be renter or invitee
Declaration
public static bool IsResidentType(this User user, SpecialResidents residentType, IEnumerable<Deed> deedScope)
Parameters
Returns
Type |
Description |
System.Boolean |
|