Use assembly name and version
This commit is contained in:
parent
dbbdf1cbef
commit
bfedf5d2bb
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using GamecraftModdingAPI;
|
using GamecraftModdingAPI;
|
||||||
using GamecraftModdingAPI.Blocks;
|
using GamecraftModdingAPI.Blocks;
|
||||||
|
@ -15,8 +16,8 @@ namespace GCMC
|
||||||
{
|
{
|
||||||
public class GCMCPlugin : IPlugin
|
public class GCMCPlugin : IPlugin
|
||||||
{
|
{
|
||||||
public string Name { get; } = "GCMC";
|
public string Name { get; } = Assembly.GetExecutingAssembly().GetName().Name;
|
||||||
public string Version { get; } = "v0.0.1";
|
public string Version { get; } = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||||
|
|
||||||
private readonly Dictionary<string, BlockType> mapping = new Dictionary<string, BlockType>(10);
|
private readonly Dictionary<string, BlockType> mapping = new Dictionary<string, BlockType>(10);
|
||||||
private JsonSerializer _serializer = JsonSerializer.Create();
|
private JsonSerializer _serializer = JsonSerializer.Create();
|
||||||
|
|
Loading…
Reference in a new issue