blob: c6c7ffb7f9bc880e825b6e5b4670e4f3fbb35447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using System;
using XUtliPoolLib;
namespace XMainClient
{
public abstract class XStaticDataBase<T> : XSingleton<T> where T : new()
{
protected bool m_bLoaded;
public override bool Init()
{
bool bLoaded = this.m_bLoaded;
bool result;
if (bLoaded)
{
result = false;
}
else
{
this.OnInit();
result = true;
}
return result;
}
public override void Uninit()
{
this.m_bLoaded = false;
}
protected abstract void OnInit();
}
}
|