コード例 #1
0
    public static TickSettings ExodusSettings()
    {
        eTickSystem type           = eTickSystem.SemiRealTime;
        float       secondsPerTurn = 30f;

        return(new TickSettings(type,
                                secondsPerTurn));
    }
コード例 #2
0
    public static TickSettings HotseatSettings()
    {
        eTickSystem type           = eTickSystem.TurnBased;
        float       secondsPerTurn = 1f;

        return(new TickSettings(type,
                                secondsPerTurn));
    }
コード例 #3
0
ファイル: FTickSys.cs プロジェクト: NickSchade/SeagullEngine
 public static TickSystem Make(HomelandsGame game, TickSettings settings)
 {
     eTickSystem type = settings._type;
     if (type == eTickSystem.TurnBased)
     {
         return new TickSysTurnBased(game, settings);
     }
     else if (type == eTickSystem.SemiRealTime)
     {
         return new TickSysRealTime(game, settings);
     }
     else
     {
         throw new System.NotImplementedException();
     }
 }
コード例 #4
0
 public TickSettings(TickConfigs configs)
 {
     _type           = configs._type;
     _secondsPerTurn = configs._secondsPerTurn;
 }
コード例 #5
0
 public TickSettings(eTickSystem type,
                     float secondsPerTurn)
 {
     _type           = type;
     _secondsPerTurn = secondsPerTurn;
 }