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.
显示文件 Open project: ianhorswill/CitySimulator

Public Properties

Property Type Description
BuildFlag bool
Name string

Public Methods

Method 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 method

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
return RoleBase,

FillRoleWith() public abstract method

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
return RoleBase,

Property Details

BuildFlag public_oe property

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

Name public_oe property

Name of the role
public string Name
return string