コード例 #1
0
ファイル: PlayerResources.cs プロジェクト: Generalcamo/OpenRA
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            Owner = self.Owner;

            Cash = self.World.LobbyInfo.GlobalSettings.StartingCash;
            AdviceInterval = info.AdviceInterval;
        }
コード例 #2
0
ファイル: PlayerResources.cs プロジェクト: wytsep/OpenRA
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            Owner = self.Owner;

            Cash           = self.World.LobbyInfo.GlobalSettings.StartingCash;
            AdviceInterval = info.AdviceInterval;
        }
コード例 #3
0
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            this.info = info;
            owner     = self.Owner;

            Cash = self.World.LobbyInfo.GlobalSettings.StartingCash;
        }
コード例 #4
0
ファイル: PlayerResources.cs プロジェクト: CH4Code/OpenRA
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            this.info = info;
            owner = self.Owner;

            Cash = self.World.LobbyInfo.GlobalSettings.StartingCash;
        }
コード例 #5
0
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            Owner = self.Owner;

            Cash           = info.InitialCash;
            Ore            = info.InitialOre;
            AdviceInterval = info.AdviceInterval;
        }
コード例 #6
0
ファイル: PlayerResources.cs プロジェクト: patthoyts/OpenRA
        public PlayerResources(Actor self, PlayerResourcesInfo info)
        {
            Owner = self.Owner;

            Cash = info.InitialCash;
            Ore = info.InitialOre;
            AdviceInterval = info.AdviceInterval;
        }
コード例 #7
0
ファイル: PlayerResources.cs プロジェクト: pchote/OpenRA
        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;
        }
コード例 #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;
            }
        }