Show / Hide Table of Contents

Class ResidencyExtensions

Inheritance
System.Object
ResidencyExtensions
Namespace: Eco.Gameplay.Property
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
Type Description
Deed

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
Type Name Description
User user
SpecialResidents residentType
System.Collections.Generic.IEnumerable<Deed> deedScope
Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾