Use assembly name and version

This commit is contained in:
Norbi Peti 2020-06-18 16:12:35 +02:00
parent dbbdf1cbef
commit bfedf5d2bb
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using GamecraftModdingAPI;
using GamecraftModdingAPI.Blocks;
@ -15,8 +16,8 @@ namespace GCMC
{
public class GCMCPlugin : IPlugin
{
public string Name { get; } = "GCMC";
public string Version { get; } = "v0.0.1";
public string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name;
public string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString();
private readonly Dictionary<string, BlockType> mapping = new Dictionary<string, BlockType>(10);
private JsonSerializer _serializer = JsonSerializer.Create();