Method | Description | |
---|---|---|
BuildingService ( IRepository |
||
CompleteBuilding ( string userId ) : void | ||
GetPlayerBuildings ( string userId ) : |
||
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? |
Method | Description | |
---|---|---|
CanBuild ( |
||
SubstractResources ( |
public BuildingService ( IRepository |
||
users | IRepository |
|
logic | ILogicProvider | |
return | System |
public CompleteBuilding ( string userId ) : void | ||
userId | string | |
return | void |
public GetPlayerBuildings ( string userId ) : |
||
userId | string | |
return |
public ScheduleBuildBarracks ( string userId ) : TimeSpan? | ||
userId | string | |
return | TimeSpan? |
public ScheduleBuildHeadQuarters ( string userId ) : TimeSpan? | ||
userId | string | |
return | TimeSpan? |
public ScheduleCrystalExtractor ( string userId ) : TimeSpan? | ||
userId | string | |
return | TimeSpan? |
public ScheduleMetalScrapper ( string userId ) : TimeSpan? | ||
userId | string | |
return | TimeSpan? |
public ScheduleResearchCentre ( string userId ) : TimeSpan? | ||
userId | string | |
return | TimeSpan? |
public ScheduleSolarCollector ( string userId ) : TimeSpan? | ||
userId | string | |
return | TimeSpan? |