Skip to content

Commit

Permalink
release 0.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Doraku committed Nov 16, 2019
1 parent 1974a68 commit 40f1827
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ DefaultEcs is an [Entity Component System](https://en.wikipedia.org/wiki/Entity_
[![NuGet](https://buildstats.info/nuget/DefaultEcs)](https://www.nuget.org/packages/DefaultEcs)
[![Coverage Status](https://coveralls.io/repos/github/Doraku/DefaultEcs/badge.svg?branch=master)](https://coveralls.io/github/Doraku/DefaultEcs?branch=master)
![continuous integration status](https://github.com/doraku/defaultecs/workflows/continuous%20integration/badge.svg)
[![preview package](https://img.shields.io/badge/preview-package-blue?style=flat&logo=github)](https://github.com/Doraku/DefaultEcs/packages/26448)

- [Requirement](#Requirement)
- [Versioning](#Versioning)
Expand Down
12 changes: 12 additions & 0 deletions documentation/RELEASENOTE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## DefaultEcs 0.12.1
fixed serialization of struct as an object
fixed serialization of Type
fixed AResourceManager.Manage for existing entities

added netstandard2.1 target
added == and != operators on Entity
added internal version on Entity, Entity.IsAlive will return false if a stored disposed entity is reused
added a helper ManagedResource static class to create ManagedResource

[nuget package](https://www.nuget.org/packages/DefaultEcs/0.12.1)

## DefaultEcs 0.12.0
breaking change:
renamed EntitySetBuilder.WithAny and WithAny attribute to WithEither
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#### [DefaultEcs](./index.md 'index')
### [DefaultEcs.Resource](./DefaultEcs-Resource.md 'DefaultEcs.Resource').[ManagedResource<TResource>](./DefaultEcs-Resource-ManagedResource-TResource-.md 'DefaultEcs.Resource.ManagedResource<TResource>')
## ManagedResource<TResource>.Create<TInfo>(TInfo) Method
Create a [ManagedResource<TInfo,TResource>](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource<TInfo,TResource>') object
```C#
public static DefaultEcs.Resource.ManagedResource<TInfo,TResource> Create<TInfo>(TInfo info);
```
#### Type parameters
<a name='DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo)-TInfo'></a>
`TInfo`
The infos used to identify the resources.

#### Parameters
<a name='DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo)-info'></a>
`info` [TInfo](#DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo)-TInfo 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;.Create&lt;TInfo&gt;(TInfo).TInfo')
The info used to identify the resource.

#### Returns
[DefaultEcs.Resource.ManagedResource&lt;](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;')[TInfo](#DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo)-TInfo 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;.Create&lt;TInfo&gt;(TInfo).TInfo')[,](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;')[TResource](./DefaultEcs-Resource-ManagedResource-TResource-.md#DefaultEcs-Resource-ManagedResource-TResource--TResource 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;.TResource')[&gt;](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;')
The [ManagedResource&lt;TInfo,TResource&gt;](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;') object.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#### [DefaultEcs](./index.md 'index')
### [DefaultEcs.Resource](./DefaultEcs-Resource.md 'DefaultEcs.Resource').[ManagedResource&lt;TResource&gt;](./DefaultEcs-Resource-ManagedResource-TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;')
## ManagedResource&lt;TResource&gt;.Create&lt;TInfo&gt;(TInfo[]) Method
Create a [ManagedResource&lt;TInfo,TResource&gt;](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;') object with multiple infos.
```C#
public static DefaultEcs.Resource.ManagedResource<TInfo[],TResource> Create<TInfo>(params TInfo[] infos);
```
#### Type parameters
<a name='DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo--)-TInfo'></a>
`TInfo`
The infos used to identify the resources.

#### Parameters
<a name='DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo--)-infos'></a>
`infos` [TInfo](#DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo--)-TInfo 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;.Create&lt;TInfo&gt;(TInfo[]).TInfo')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array')
The type used to identify a resource.

#### Returns
[DefaultEcs.Resource.ManagedResource&lt;](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;')[TInfo](#DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo--)-TInfo 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;.Create&lt;TInfo&gt;(TInfo[]).TInfo')[[]](https://docs.microsoft.com/en-us/dotnet/api/System.Array 'System.Array')[,](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;')[TResource](./DefaultEcs-Resource-ManagedResource-TResource-.md#DefaultEcs-Resource-ManagedResource-TResource--TResource 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;.TResource')[&gt;](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;')
The [ManagedResource&lt;TInfo,TResource&gt;](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;') object.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#### [DefaultEcs](./index.md 'index')
### [DefaultEcs.Resource](./DefaultEcs-Resource.md 'DefaultEcs.Resource')
## ManagedResource&lt;TResource&gt; Class
Provides static methods for creating [ManagedResource&lt;TInfo,TResource&gt;](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;') object.
```C#
public static class ManagedResource<TResource>
```
Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') &gt; [ManagedResource&lt;TResource&gt;](./DefaultEcs-Resource-ManagedResource-TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;')
#### Type parameters
<a name='DefaultEcs-Resource-ManagedResource-TResource--TResource'></a>
`TResource`
The type of the resource.

### Methods
- [Create&lt;TInfo&gt;(TInfo)](./DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo).md 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;.Create&lt;TInfo&gt;(TInfo)')
- [Create&lt;TInfo&gt;(TInfo[])](./DefaultEcs-Resource-ManagedResource-TResource--Create-TInfo-(TInfo--).md 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;.Create&lt;TInfo&gt;(TInfo[])')
1 change: 1 addition & 0 deletions documentation/api/DefaultEcs-Resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
The [DefaultEcs.Resource](./DefaultEcs-Resource.md 'DefaultEcs.Resource') namespace contains types used in the loading of unmanaged resources needed as components.
### Classes
- [AResourceManager&lt;TInfo,TResource&gt;](./DefaultEcs-Resource-AResourceManager-TInfo_TResource-.md 'DefaultEcs.Resource.AResourceManager&lt;TInfo,TResource&gt;')
- [ManagedResource&lt;TResource&gt;](./DefaultEcs-Resource-ManagedResource-TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TResource&gt;')
### Structs
- [ManagedResource&lt;TInfo,TResource&gt;](./DefaultEcs-Resource-ManagedResource-TInfo_TResource-.md 'DefaultEcs.Resource.ManagedResource&lt;TInfo,TResource&gt;')
2 changes: 1 addition & 1 deletion source/DefaultEcs/DefaultEcs.Release.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>

<PropertyGroup Label="Package">
<Version>0.12.1-alpha1</Version>
<Version>0.12.1</Version>
<PackageReleaseNotes>
fixed serialization of struct as an object
fixed serialization of Type
Expand Down

0 comments on commit 40f1827

Please sign in to comment.