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

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

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

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

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

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

            Cash = info.InitialCash;
            Ore = info.InitialOre;
            AdviceInterval = info.AdviceInterval;
        }
Esempio 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;
        }
Esempio 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;
            }
        }