Skip to content

Commit

Permalink
fix: Codegens spawners (#1678)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman committed Feb 13, 2024
1 parent 48e47f9 commit 5ada7a4
Show file tree
Hide file tree
Showing 19 changed files with 1,348 additions and 1,458 deletions.
25 changes: 25 additions & 0 deletions Projects/Server/Json/SerializedJsonIgnore.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*************************************************************************
* ModernUO *
* Copyright 2019-2024 - ModernUO Development Team *
* Email: hi@modernuo.com *
* File: SerializedJsonIgnore.cs *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*************************************************************************/

using System;
using System.Text.Json.Serialization;
using ModernUO.Serialization;

namespace Server.Json;

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class SerializedJsonIgnoreAttribute : SerializedPropertyAttrAttribute<JsonIgnoreAttribute>
{
}
26 changes: 26 additions & 0 deletions Projects/Server/Json/SerializedJsonPropertyName.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*************************************************************************
* ModernUO *
* Copyright 2019-2024 - ModernUO Development Team *
* Email: hi@modernuo.com *
* File: SerializedJsonPropertyName.cs *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*************************************************************************/

using System;
using System.Text.Json.Serialization;
using ModernUO.Serialization;

namespace Server.Json;

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class SerializedJsonPropertyNameAttribute(string name) : SerializedPropertyAttrAttribute<JsonPropertyNameAttribute>
{
public string Name { get; } = name;
}

0 comments on commit 5ada7a4

Please sign in to comment.