29 lines
671 B
C#
29 lines
671 B
C#
using StgSharp.Control;
|
|
using StgSharp.Geometries;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace StgSharp
|
|
{
|
|
public static partial class Instruction
|
|
{
|
|
/// <summary>
|
|
/// Add a pool to timeline controller, and return the instance of the pool.
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static Pool InitPool()
|
|
{
|
|
Pool pool = new Pool();
|
|
AddPool(pool);
|
|
return pool;
|
|
}
|
|
|
|
public static void AddPool(Pool pool)
|
|
{
|
|
ProgramTimeLine.allPool.Add(pool);
|
|
ProgramTimeLine._currentPool = pool;
|
|
}
|
|
}
|
|
}
|