public void SetProgramObjectConstructor(int programObjectId, ProgramObjectConstructor programObjectConstructor) { if (programObjectId < 0 || programObjectId >= m_data.programObjects.Length) { return; } m_programObjectConstructors[programObjectId] = programObjectConstructor; }
public ProgramObject(LWF lwf, Movie parent, int objId) : base(lwf, parent, Format.Object.Type.PROGRAMOBJECT, objId) { Format.ProgramObject data = lwf.data.programObjects[objId]; m_dataMatrixId = data.matrixId; ProgramObjectConstructor ctor = lwf.GetProgramObjectConstructor(objId); if (ctor != null) { m_renderer = ctor(this, objId, data.width, data.height); } }
public void SetProgramObjectConstructor(string programObjectName, ProgramObjectConstructor programObjectConstructor) { SetProgramObjectConstructor( SearchProgramObjectId(programObjectName), programObjectConstructor); }
public void SetProgramObjectConstructor(int programObjectId, ProgramObjectConstructor programObjectConstructor) { if (programObjectId < 0 || programObjectId >= m_data.programObjects.Length) return; m_programObjectConstructors[programObjectId] = programObjectConstructor; }