mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Create a separate CTFConfig class
This commit is contained in:
parent
78e1acfdd5
commit
cf362c0361
75
MCGalaxy/Games/CTF/CtfConfig2.cs
Normal file
75
MCGalaxy/Games/CTF/CtfConfig2.cs
Normal file
@ -0,0 +1,75 @@
|
||||
/*
|
||||
Copyright 2011 MCForge
|
||||
|
||||
Written by fenderrock87
|
||||
|
||||
Dual-licensed under the Educational Community License, Version 2.0 and
|
||||
the GNU General Public License, Version 3 (the "Licenses"); you may
|
||||
not use this file except in compliance with the Licenses. You may
|
||||
obtain a copy of the Licenses at
|
||||
|
||||
http://www.opensource.org/licenses/ecl2.php
|
||||
http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the Licenses are distributed on an "AS IS"
|
||||
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
||||
or implied. See the Licenses for the specific language governing
|
||||
permissions and limitations under the Licenses.
|
||||
*/
|
||||
using System;
|
||||
using MCGalaxy.Config;
|
||||
|
||||
namespace MCGalaxy.Games {
|
||||
|
||||
public sealed class CTFConfig {
|
||||
|
||||
[ConfigInt("base.red.x", null, null, 0)]
|
||||
public int RedFlagX;
|
||||
[ConfigInt("base.red.y", null, null, 0)]
|
||||
public int RedFlagY;
|
||||
[ConfigInt("base.red.z", null, null, 0)]
|
||||
public int RedFlagZ;
|
||||
[ConfigByte("base.red.block", null, null, 0)]
|
||||
public byte RedFlagBlock;
|
||||
|
||||
[ConfigInt("base.blue.x", null, null, 0)]
|
||||
public int BlueFlagX;
|
||||
[ConfigInt("base.blue.y", null, null, 0)]
|
||||
public int BlueFlagY;
|
||||
[ConfigInt("base.blue.z", null, null, 0)]
|
||||
public int BlueFlagZ;
|
||||
[ConfigByte("base.blue.block", null, null, 0)]
|
||||
public byte BlueFlagBlock;
|
||||
|
||||
[ConfigInt("base.red.spawnx", null, null, 0)]
|
||||
public int RedSpawnX;
|
||||
[ConfigInt("base.red.spawny", null, null, 0)]
|
||||
public int RedSpawnY;
|
||||
[ConfigInt("base.red.spawnz", null, null, 0)]
|
||||
public int RedSpawnZ;
|
||||
|
||||
[ConfigInt("base.blue.spawnx", null, null, 0)]
|
||||
public int BlueSpawnX;
|
||||
[ConfigInt("base.blue.spawny", null, null, 0)]
|
||||
public int BlueSpawnY;
|
||||
[ConfigInt("base.blue.spawnz", null, null, 0)]
|
||||
public int BlueSpawnZ;
|
||||
|
||||
[ConfigBool("auto.setup", null, null, false)]
|
||||
public bool NeedSetup;
|
||||
[ConfigInt("map.line.z", null, null, 0)]
|
||||
public int ZLine;
|
||||
|
||||
[ConfigInt("game.maxpoints", null, null, 0)]
|
||||
public int MaxPoints;
|
||||
[ConfigInt("game.tag.points-gain", null, null, 0)]
|
||||
public int Tag_PointsGained;
|
||||
[ConfigInt("game.tag.points-lose", null, null, 0)]
|
||||
public int Tag_PointsLost;
|
||||
[ConfigInt("game.capture.points-gain", null, null, 0)]
|
||||
public int Capture_PointsGained;
|
||||
[ConfigInt("game.capture.points-lose", null, null, 0)]
|
||||
public int Capture_PointsLost;
|
||||
}
|
||||
}
|
@ -486,6 +486,7 @@
|
||||
<Compile Include="Games\Countdown\CountdownMapGen.cs" />
|
||||
<Compile Include="Games\Countdown\CountdownPlugin.cs" />
|
||||
<Compile Include="Games\CTF\CtfConfig.cs" />
|
||||
<Compile Include="Games\CTF\CtfConfig2.cs" />
|
||||
<Compile Include="Games\CTF\CtfTeam.cs" />
|
||||
<Compile Include="Games\GameProps.cs" />
|
||||
<Compile Include="Games\IGame.cs" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user