1
This commit is contained in:
56
Unity/Extensions/GameDesigner/GDNetSerivceProvider.cs
Normal file
56
Unity/Extensions/GameDesigner/GDNetSerivceProvider.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Net;
|
||||
using Net.Component;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
namespace BITKit
|
||||
{
|
||||
[Serializable]
|
||||
public record GDNetSerivceProvider:INetProvider
|
||||
{
|
||||
public void ServerRpc(Action<string> action, params object[] pars)
|
||||
{
|
||||
SendRT(action.Method.Name,pars);
|
||||
}
|
||||
public void ServerRpc(Action<object> action, params object[] pars)
|
||||
{
|
||||
SendRT(action.Method.Name,pars);
|
||||
}
|
||||
public void AddRpcHandle(object rpcHandle)
|
||||
{
|
||||
|
||||
}
|
||||
public void SendRT(string rpcName, params object[] pars)
|
||||
{
|
||||
}
|
||||
|
||||
public void SendAllRT(string rpcName, params object[] pars)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void ServerRpc(Action<Object> action, params object[] pars)
|
||||
{
|
||||
SendRT(action.Method.Name,pars);
|
||||
}
|
||||
|
||||
public void ClientRpc(Action<Object> action, params object[] pars)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void ServerRpc(Action<GameObject> action, params object[] pars)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void ClientRpc(Action<GameObject> action, params object[] pars)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user