public PlayerResources(Actor self, PlayerResourcesInfo info) { Owner = self.Owner; Cash = self.World.LobbyInfo.GlobalSettings.StartingCash; AdviceInterval = info.AdviceInterval; }
public PlayerResources(Actor self, PlayerResourcesInfo info) { this.info = info; owner = self.Owner; Cash = self.World.LobbyInfo.GlobalSettings.StartingCash; }
public PlayerResources(Actor self, PlayerResourcesInfo info) { Owner = self.Owner; Cash = info.InitialCash; Ore = info.InitialOre; AdviceInterval = info.AdviceInterval; }
public PlayerResources(Actor self, PlayerResourcesInfo info) { this.info = info; owner = self.Owner; var startingCash = self.World.LobbyInfo.GlobalSettings .OptionOrDefault("startingcash", info.DefaultCash.ToString()); if (!int.TryParse(startingCash, out Cash)) Cash = info.DefaultCash; }
public PlayerResources(Actor self, PlayerResourcesInfo info) { this.Info = info; owner = self.Owner; var startingCash = self.World.LobbyInfo.GlobalSettings .OptionOrDefault("startingcash", info.DefaultCash.ToString()); if (!int.TryParse(startingCash, out Cash)) { Cash = info.DefaultCash; } }