Skip to content

Commit e77320a

Browse files
authored
abstract classes used in unity (#56)
* abstract classes used in unity * add backward compatibility docs
1 parent bacafc1 commit e77320a

File tree

6 files changed

+11
-7
lines changed

6 files changed

+11
-7
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ while(true)
100100
}
101101
```
102102

103+
# Backward compatibility
104+
- **v1.1.4-unity**: all classes extending MonoBehaviour have been made abstract. To use these classes in
105+
a Unity project, it is necessary to generate concrete classes that inherit from these abstract classes and
106+
subsequently attach them to the desired Unity components. E.g., `EzyDefaultController`, `EzyEventProcessor`,
107+
`EzyUnityLoggerFactory`, `EzySocketConfigHolderVariable`, and `EzySocketConfigVariable`.
108+
103109
# Used By
104110

105111
1. [hello-csharp](https://github.com/tvd12/ezyfox-server-example/tree/master/hello-csharp)

unity/EzyDefaultController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace com.tvd12.ezyfoxserver.client.unity
1111
{
12-
public class EzyDefaultController : MonoBehaviour
12+
public abstract class EzyDefaultController : MonoBehaviour
1313
{
1414
[SerializeField]
1515
private EzySocketConfigHolderVariable socketConfigHolderVariable;

unity/EzyEventProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace com.tvd12.ezyfoxserver.client.unity
44
{
5-
public class EzyEventProcessor : MonoBehaviour
5+
public abstract class EzyEventProcessor : MonoBehaviour
66
{
77
private static EzyEventProcessor INSTANCE;
88

unity/EzyUnityLoggerFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace com.tvd12.ezyfoxserver.client.unity
66
{
7-
public class EzyUnityLoggerFactory : MonoBehaviour
7+
public abstract class EzyUnityLoggerFactory : MonoBehaviour
88
{
99
[SerializeField]
1010
private EzyLoggerLevel loggerLevel = EzyLoggerLevel.INFO;

unity/variable/EzySocketConfigHolderVariable.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
namespace com.tvd12.ezyfoxserver.client.unity
44
{
5-
[CreateAssetMenu]
6-
public class EzySocketConfigHolderVariable : EzyScriptableVariable<EzySocketConfigVariable>
5+
public abstract class EzySocketConfigHolderVariable : EzyScriptableVariable<EzySocketConfigVariable>
76
{
87
}
98
}

unity/variable/EzySocketConfigVariable.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
namespace com.tvd12.ezyfoxserver.client.unity
55
{
6-
[CreateAssetMenu]
7-
public class EzySocketConfigVariable : EzyScriptableVariable<
6+
public abstract class EzySocketConfigVariable : EzyScriptableVariable<
87
EzySocketConfigVariable.EzySocketConfigModel
98
>
109
{

0 commit comments

Comments
 (0)