Exemplo n.º 1
0
        public static Metadata ReadLineIntoMetadata()
        {
            var metadata = ReadLine();

            DebugLog.AddLog($"Metadata: '{metadata}'");
            return(new Metadata(metadata.Trim().Split(' ')));

            return(new Metadata(ReadLine().Trim().Split(' ')));
        }
Exemplo n.º 2
0
 public void Claim(Planet planet)
 {
     if (!claimed)
     {
         planet.AddShipClaim(this);
         DebugLog.AddLog($"Ship: {GetId()} Claimed!");
         claimed = true;
     }
     else
     {
         throw new Exception("Claimed already claimed entity.");
     }
 }
Exemplo n.º 3
0
 public void ClaimStateless()
 {
     claimed = true;
     DebugLog.AddLog($"Ship: {GetId()} Claimed For One Round!");
 }