Ejemplo n.º 1
0
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            Owner = self.Owner;

            Cash = self.World.LobbyInfo.GlobalSettings.StartingCash;
            AdviceInterval = info.AdviceInterval;
        }
Ejemplo n.º 2
0
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            Owner = self.Owner;

            Cash           = self.World.LobbyInfo.GlobalSettings.StartingCash;
            AdviceInterval = info.AdviceInterval;
        }
Ejemplo n.º 3
0
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            this.info = info;
            owner     = self.Owner;

            Cash = self.World.LobbyInfo.GlobalSettings.StartingCash;
        }
Ejemplo n.º 4
0
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            this.info = info;
            owner = self.Owner;

            Cash = self.World.LobbyInfo.GlobalSettings.StartingCash;
        }
Ejemplo n.º 5
0
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            Owner = self.Owner;

            Cash           = info.InitialCash;
            Ore            = info.InitialOre;
            AdviceInterval = info.AdviceInterval;
        }
Ejemplo n.º 6
0
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            Owner = self.Owner;

            Cash = info.InitialCash;
            Ore = info.InitialOre;
            AdviceInterval = info.AdviceInterval;
        }
Ejemplo n.º 7
0
        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;
        }
Ejemplo n.º 8
0
        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;
            }
        }