C# Class RoleTypeBase, CitySimulator

Base class for all RoleTypes. Allows for lists of roles to fill (see ActionTypes). Represents a role, independent of the value it's bound to in a particular action. Utilizes the RoleBase type to return filled in Roles.
Afficher le fichier Open project: ianhorswill/CitySimulator

Méthodes publiques

Свойство Type Description
BuildFlag bool
Name string

Méthodes publiques

Méthode Description
FillRoleUntyped ( Action, action ) : RoleBase,

Find a value to bind this role to for some particular action.

FillRoleWith ( object toFill, Action, action ) : RoleBase,

Attempt to bind (fill) this role to a specific value for some action

Method Details

FillRoleUntyped() public abstract méthode

Find a value to bind this role to for some particular action.
public abstract FillRoleUntyped ( Action, action ) : RoleBase,
action Action, The action being passed along to filter by /// the already filled items in the binding list
Résultat RoleBase,

FillRoleWith() public abstract méthode

Attempt to bind (fill) this role to a specific value for some action
public abstract FillRoleWith ( object toFill, Action, action ) : RoleBase,
toFill object Value to bind it to
action Action, The action being bound
Résultat RoleBase,

Property Details

BuildFlag public_oe property

True if the simulator should construct a new object to fill the role.
public bool BuildFlag
Résultat bool

Name public_oe property

Name of the role
public string Name
Résultat string