备份CatanBuilding瘦身独立工程
This commit is contained in:
30
Assets/Scripts/ModuleModel/BaseModel.cs
Normal file
30
Assets/Scripts/ModuleModel/BaseModel.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ModuleModel
|
||||
{
|
||||
public abstract class BaseModel:IModel
|
||||
{
|
||||
private IModel _modelImplementation;
|
||||
public int ModuleId { get; set; }
|
||||
|
||||
public abstract void Init();
|
||||
|
||||
public abstract void InitServerData(Dictionary<string, string> userDatas);
|
||||
|
||||
public abstract void InitConfig();
|
||||
|
||||
public virtual void AfterServerDataAnalysis()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void DoFrameUpdate(int time, int delta)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public virtual void Dispose()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/ModuleModel/BaseModel.cs.meta
Normal file
3
Assets/Scripts/ModuleModel/BaseModel.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6230879539424c32976d9fdcd0896639
|
||||
timeCreated: 1724844039
|
||||
16
Assets/Scripts/ModuleModel/IModel.cs
Normal file
16
Assets/Scripts/ModuleModel/IModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ModuleModel
|
||||
{
|
||||
public interface IModel
|
||||
{
|
||||
int ModuleId { get; set; }
|
||||
void Init();
|
||||
void InitServerData(Dictionary<string, string> userDatas);
|
||||
void InitConfig();
|
||||
void AfterServerDataAnalysis();
|
||||
void DoFrameUpdate(int time, int delta);
|
||||
|
||||
void Dispose();
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/ModuleModel/IModel.cs.meta
Normal file
3
Assets/Scripts/ModuleModel/IModel.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6af815cf30e147dc84ef0345e201d45b
|
||||
timeCreated: 1724843649
|
||||
Reference in New Issue
Block a user