ForgeDocs
Documentation for the forge framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Forge.Entities.ITemplateGroup Interface Reference

An ITemplateGroup is simply a collection of templates that IGameSnapshots use. More...

Inherited by Forge.Entities.Implementation.Content.TemplateGroup.

Public Member Functions

ITemplate CreateTemplate ()
 Creates a new ITemplate instance that is attached to this snapshot. More...
 
bool RemoveTemplate (ITemplate template)
 Attempts to remove the given template from the template group. Be careful that no IGameSnapshots are referencing the given template. More...
 

Properties

IEnumerable< ITemplateTemplates [get]
 All of the templates that are within the group. More...
 

Detailed Description

An ITemplateGroup is simply a collection of templates that IGameSnapshots use.

Member Function Documentation

ITemplate Forge.Entities.ITemplateGroup.CreateTemplate ( )

Creates a new ITemplate instance that is attached to this snapshot.

bool Forge.Entities.ITemplateGroup.RemoveTemplate ( ITemplate  template)

Attempts to remove the given template from the template group. Be careful that no IGameSnapshots are referencing the given template.

Returns
True if the template was found and removed, false if it was not found.

Property Documentation

IEnumerable<ITemplate> Forge.Entities.ITemplateGroup.Templates
get

All of the templates that are within the group.


The documentation for this interface was generated from the following file: