Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.InvetorySystem.AFeaturesExtendingResource< FeatureType > Class Template Reference

Detailed Description

A resource that can be extended with AEntityFeature components. Implements members to integrate the features into common using logic.

Template Parameters
FeatureType
Type Constraints
FeatureType :AEntityFeature 
Inheritance diagram for Doloro.InvetorySystem.AFeaturesExtendingResource< FeatureType >:
Collaboration diagram for Doloro.InvetorySystem.AFeaturesExtendingResource< FeatureType >:

Public Member Functions

bool IsConflictsWith (UnityEngine.Object resource)
 Compares signatures of both resources. More...
 
void MergeTo (IMergeableResource to)
 Redirecting to the MergeTo(DynamicResource) with safe cast of resource to the DynamicResource. More...
 
void MergeTo (DynamicResource to)
 
void MergeTo (T to)
 Sharing itself values to some another merging resource. More...
 
override string ToString ()
 Returns resource meta data in string formate useful for logs-like messages. More...
 
virtual bool Equals (DynamicResource other)
 Compares signatures and tags collection. More...
 
bool IsTagDefined (Tag tag)
 Checks is the tag defined for the component. More...
 
bool IsTagDefined (string tag)
 Checks is the tag defined for the component. More...
 

Properties

IEnumerable< FeatureType > features [get]
 Collection of features applied to the resource instance.
 
string Bundle [get, set]
 A bundle name. Works the same as namespace and allows to prevent keys collision. More...
 
string Key [get, set]
 An unique key of the resource in the bundle. In case if the key collides with other one in the same bundle then will be called merging operation. More...
 
Version version [get, set]
 Asset version.
 
string[] TagKeys [get, set]
 Keys of tags applied to the resource according with tags collection. More...
 

Member Function Documentation

◆ Equals()

virtual bool Doloro.DataManagement.DynamicResources.DynamicResource.Equals ( DynamicResource  other)
virtualinherited

Compares signatures and tags collection.

Parameters
otherOther instance.
Returns
Compare result.

Tags order must be the same to pass as true.

◆ IsConflictsWith()

bool Doloro.DataManagement.DynamicResources.DynamicResource.IsConflictsWith ( UnityEngine.Object  resource)
inherited

Compares signatures of both resources.

Parameters
resourceAnother resource to conflicts check.
Returns
True in case if bundle and key are the same for both resources.

Implements Doloro.DataManagement.DynamicResources.Modules.MergeTool.IUniqueResource.

◆ IsTagDefined() [1/2]

bool Doloro.DataManagement.DynamicResources.ATagsCategorisedComponent.IsTagDefined ( string  tag)
inherited

Checks is the tag defined for the component.

Parameters
tagTag to search. Case sensitive.
Returns
Is the tag has been found.

◆ IsTagDefined() [2/2]

bool Doloro.DataManagement.DynamicResources.ATagsCategorisedComponent.IsTagDefined ( Tag  tag)
inherited

Checks is the tag defined for the component.

Parameters
tagTag to search.
Returns
Is the tag has been found.

◆ MergeTo() [1/3]

void Doloro.DataManagement.DynamicResources.DynamicResource.MergeTo ( DynamicResource  to)
inherited

  • Cloning tags to the target resource.
  • Patching in case if game object contains Modules.PatchTool.APatchOrder components.
Parameters
toTarget resource.

◆ MergeTo() [2/3]

void Doloro.DataManagement.DynamicResources.DynamicResource.MergeTo ( IMergeableResource  to)
inherited

Redirecting to the MergeTo(DynamicResource) with safe cast of resource to the DynamicResource.

Parameters
toTarget resource.

◆ MergeTo() [3/3]

Sharing itself values to some another merging resource.

Parameters
toTarget resource that will contains the value merged with stored in this resource.

◆ ToString()

override string Doloro.DataManagement.DynamicResources.DynamicResource.ToString ( )
inherited

Returns resource meta data in string formate useful for logs-like messages.

Returns
Generated string in format (bundle.|"")+key

Property Documentation

◆ Bundle

string Doloro.DataManagement.DynamicResources.DynamicResource.Bundle
getsetinherited

A bundle name. Works the same as namespace and allows to prevent keys collision.

Implements Doloro.DataManagement.DynamicResources.ISignedResource.

◆ Key

string Doloro.DataManagement.DynamicResources.DynamicResource.Key
getsetinherited

An unique key of the resource in the bundle. In case if the key collides with other one in the same bundle then will be called merging operation.

Implements Doloro.DataManagement.DynamicResources.ISignedResource.

◆ TagKeys

string [] Doloro.DataManagement.DynamicResources.ATagsCategorisedComponent.TagKeys
getsetinherited

Keys of tags applied to the resource according with tags collection.

Implements Doloro.DataManagement.DynamicResources.ITagsCollection.


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