C# 클래스 GalaxyStorm.Services.Data.BuildingService

상속: IBuildingsService
파일 보기 프로젝트 열기: Pip3r4o/GalaxyStorm-MVC

공개 메소드들

메소드 설명
BuildingService ( IRepository users, ILogicProvider logic ) : System
CompleteBuilding ( string userId ) : void
GetPlayerBuildings ( string userId ) : Buildings
ScheduleBuildBarracks ( string userId ) : TimeSpan?
ScheduleBuildHeadQuarters ( string userId ) : TimeSpan?

Perform necessary checks and then take resources from player, set end date and return timespan for the background worker to trigger an even when time has elapsed

ScheduleCrystalExtractor ( string userId ) : TimeSpan?
ScheduleMetalScrapper ( string userId ) : TimeSpan?
ScheduleResearchCentre ( string userId ) : TimeSpan?
ScheduleSolarCollector ( string userId ) : TimeSpan?

비공개 메소드들

메소드 설명
CanBuild ( PlayerObject pO, int toLevel, IBuilding buildingLogic ) : bool
SubstractResources ( PlayerObject pO, int resources ) : void

메소드 상세

BuildingService() 공개 메소드

public BuildingService ( IRepository users, ILogicProvider logic ) : System
users IRepository
logic ILogicProvider
리턴 System

CompleteBuilding() 공개 메소드

public CompleteBuilding ( string userId ) : void
userId string
리턴 void

GetPlayerBuildings() 공개 메소드

public GetPlayerBuildings ( string userId ) : Buildings
userId string
리턴 GalaxyStorm.Data.Models.PlayerObjects.Buildings

ScheduleBuildBarracks() 공개 메소드

public ScheduleBuildBarracks ( string userId ) : TimeSpan?
userId string
리턴 TimeSpan?

ScheduleBuildHeadQuarters() 공개 메소드

Perform necessary checks and then take resources from player, set end date and return timespan for the background worker to trigger an even when time has elapsed
public ScheduleBuildHeadQuarters ( string userId ) : TimeSpan?
userId string
리턴 TimeSpan?

ScheduleCrystalExtractor() 공개 메소드

public ScheduleCrystalExtractor ( string userId ) : TimeSpan?
userId string
리턴 TimeSpan?

ScheduleMetalScrapper() 공개 메소드

public ScheduleMetalScrapper ( string userId ) : TimeSpan?
userId string
리턴 TimeSpan?

ScheduleResearchCentre() 공개 메소드

public ScheduleResearchCentre ( string userId ) : TimeSpan?
userId string
리턴 TimeSpan?

ScheduleSolarCollector() 공개 메소드

public ScheduleSolarCollector ( string userId ) : TimeSpan?
userId string
리턴 TimeSpan?