C# 클래스 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.
파일 보기 프로젝트 열기: ianhorswill/CitySimulator

공개 프로퍼티들

프로퍼티 타입 설명
BuildFlag bool
Name string

공개 메소드들

메소드 설명
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

메소드 상세

FillRoleUntyped() 공개 추상적인 메소드

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
리턴 RoleBase,

FillRoleWith() 공개 추상적인 메소드

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
리턴 RoleBase,

프로퍼티 상세

BuildFlag 공개적으로 프로퍼티

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

Name 공개적으로 프로퍼티

Name of the role
public string Name
리턴 string