C# 클래스 ByChance.Configuration.Parameters.ChunkDistribution

Specifies the distribution of chunk templates within a level.
상속: IChunkDistribution
파일 보기 프로젝트 열기: npruehs/bychance

공개 메소드들

메소드 설명
GetEffectiveWeight ( Context freeLevelContext, Context chunkCandidateContext, object level ) : int

Gets the effective weight of a chunk.

Most simple implementation is to just return the weight of the chunk candidate to which chunkCandidateContext belongs to. freeLevelContext and level are passed for custom implementations by clients.

메소드 상세

GetEffectiveWeight() 공개 메소드

Gets the effective weight of a chunk.

Most simple implementation is to just return the weight of the chunk candidate to which chunkCandidateContext belongs to. freeLevelContext and level are passed for custom implementations by clients.

public GetEffectiveWeight ( Context freeLevelContext, Context chunkCandidateContext, object level ) : int
freeLevelContext ByChance.Core.Context Open context of the existing chunk to which the new chunk candidate will be attached to.
chunkCandidateContext ByChance.Core.Context Open context of the chunk candidate.
level object Current generated level.
리턴 int