-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
285 changed files
with
3,155 additions
and
652 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 1 addition & 5 deletions
6
Doc/Example/CSharp.texport → ...ration Project/CSharpEventClasses.texport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
Doc/Examples/Tome Example Code Generation Project/CSharpEventClasses.texportf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace TomeExampleProject.Events | ||
{ | ||
using System.Collections.Generic; | ||
|
||
public class Event | ||
{ | ||
/// <summary> | ||
/// Data of this event. | ||
/// </summary> | ||
public object Data { get; set; } | ||
|
||
/// <summary> | ||
/// Type of this event. | ||
/// </summary> | ||
public EventType Type { get; set; } | ||
} | ||
|
||
$RECORDS$ | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
Doc/Examples/Tome Example Code Generation Project/CSharpEventClasses.texportv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <summary> | ||
/// $FIELD_DESCRIPTION$ | ||
/// </summary> | ||
public $FIELD_TYPE$ $FIELD_ID$ { get; set; } |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
Doc/Examples/Tome Example Code Generation Project/CSharpEventDeserializer.texport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Template Version="2" ExportRoots="true"> | ||
<Name>Event Deserializer (CSharp)</Name> | ||
<FileExtension>.cs</FileExtension> | ||
<TypeMap> | ||
<Mapping TomeType="Boolean" ExportedType="Boolean"/> | ||
<Mapping TomeType="Color" ExportedType="String"/> | ||
<Mapping TomeType="Integer" ExportedType="Int32"/> | ||
<Mapping TomeType="Real" ExportedType="Single"/> | ||
<Mapping TomeType="Reference" ExportedType="String"/> | ||
<Mapping TomeType="String" ExportedType="String"/> | ||
</TypeMap> | ||
<IgnoredRecords/> | ||
<IgnoredFields/> | ||
</Template> |
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
Doc/Examples/Tome Example Code Generation Project/CSharpEventDeserializer.texportf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace TomeExampleProject.Events | ||
{ | ||
using System; | ||
using System.IO; | ||
|
||
public class BinaryEventDeserializer | ||
{ | ||
public Event Deserialize(BinaryReader reader) | ||
{ | ||
EventType type = (EventType)Enum.Parse(typeof(EventType), reader.ReadString()); | ||
|
||
switch (type) | ||
{ | ||
$RECORDS$ | ||
} | ||
|
||
throw new ArgumentException(string.Format("Unknown event type: {0}", type), "reader"); | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
Doc/Examples/Tome Example Code Generation Project/CSharpEventDeserializer.texportr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
case EventType.$RECORD_ID$: | ||
$RECORD_ID$ $RECORD_ID$ = new $RECORD_ID$(); | ||
$RECORD_FIELDS$ | ||
return new Event { Type = EventType.$RECORD_ID$, Data = $RECORD_ID$ }; |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
Doc/Examples/Tome Example Code Generation Project/CSharpEventDeserializer.texportv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$RECORD_ID$.$FIELD_ID$ = reader.Read$FIELD_TYPE$(); |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
Doc/Examples/Tome Example Code Generation Project/CSharpEventSerializer.texport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Template Version="2" ExportRoots="true"> | ||
<Name>Event Serializer (CSharp)</Name> | ||
<FileExtension>.cs</FileExtension> | ||
<TypeMap> | ||
<Mapping TomeType="Boolean" ExportedType="bool"/> | ||
<Mapping TomeType="Color" ExportedType="string"/> | ||
<Mapping TomeType="Integer" ExportedType="int"/> | ||
<Mapping TomeType="Real" ExportedType="float"/> | ||
<Mapping TomeType="Reference" ExportedType="string"/> | ||
<Mapping TomeType="String" ExportedType="string"/> | ||
</TypeMap> | ||
<IgnoredRecords/> | ||
<IgnoredFields/> | ||
</Template> |
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
Doc/Examples/Tome Example Code Generation Project/CSharpEventSerializer.texportf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace TomeExampleProject.Events | ||
{ | ||
using System; | ||
using System.IO; | ||
|
||
public class BinaryEventSerializer | ||
{ | ||
public void Serialize(BinaryWriter writer, Event e) | ||
{ | ||
writer.Write(e.Type.ToString()); | ||
|
||
switch (e.Type) | ||
{ | ||
$RECORDS$ | ||
} | ||
|
||
throw new ArgumentException(string.Format("Unknown event type: {0}", e.Type), "e"); | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
Doc/Examples/Tome Example Code Generation Project/CSharpEventSerializer.texportr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
case EventType.$RECORD_ID$: | ||
$RECORD_ID$ $RECORD_ID$ = ($RECORD_ID$)e.Data; | ||
$RECORD_FIELDS$ | ||
return; |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
Doc/Examples/Tome Example Code Generation Project/CSharpEventSerializer.texportv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
writer.Write($RECORD_ID$.$FIELD_ID$); |
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
Doc/Examples/Tome Example Code Generation Project/CSharpEventTypes.texport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Template Version="2" ExportRoots="true"> | ||
<Name>Event Types (CSharp)</Name> | ||
<FileExtension>.cs</FileExtension> | ||
<TypeMap> | ||
<Mapping TomeType="Boolean" ExportedType="bool"/> | ||
<Mapping TomeType="Color" ExportedType="string"/> | ||
<Mapping TomeType="Integer" ExportedType="int"/> | ||
<Mapping TomeType="Real" ExportedType="float"/> | ||
<Mapping TomeType="Reference" ExportedType="string"/> | ||
<Mapping TomeType="String" ExportedType="string"/> | ||
</TypeMap> | ||
<IgnoredRecords/> | ||
<IgnoredFields/> | ||
</Template> |
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
Doc/Examples/Tome Example Code Generation Project/CSharpEventTypes.texportf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace TomeExampleProject.Events | ||
{ | ||
public enum EventType | ||
{ | ||
$RECORDS$ | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
Doc/Examples/Tome Example Code Generation Project/CSharpEventTypes.texportr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$RECORD_ID$ |
File renamed without changes.
Empty file.
Empty file.
2 changes: 2 additions & 0 deletions
2
Doc/Examples/Tome Example Code Generation Project/Tome Example Code Generation Project.tcomp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Components/> |
43 changes: 43 additions & 0 deletions
43
Doc/Examples/Tome Example Code Generation Project/Tome Example Code Generation Project.tdata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Records> | ||
<Record Id="CooldownFinishedEvent" DisplayName="CooldownFinishedEvent"> | ||
<EntityId Value="0"/> | ||
</Record> | ||
<Record Id="DamageTakenEvent" DisplayName="DamageTakenEvent"> | ||
<EntityId Value="0"/> | ||
<NewHealth Value="0"/> | ||
<OldHealth Value="0"/> | ||
</Record> | ||
<Record Id="EffectAppliedEvent" DisplayName="EffectAppliedEvent"> | ||
<EffectId Value="0"/> | ||
<EntityId Value="0"/> | ||
</Record> | ||
<Record Id="EntityAttackedEvent" DisplayName="EntityAttackedEvent"> | ||
<AttackerId Value="0"/> | ||
<DefenderId Value="0"/> | ||
</Record> | ||
<Record Id="EntityCreatedEvent" DisplayName="EntityCreatedEvent"> | ||
<EntityId Value="0"/> | ||
</Record> | ||
<Record Id="EventKilledEvent" DisplayName="EventKilledEvent"> | ||
<EntityId Value="0"/> | ||
</Record> | ||
<Record Id="LevelLoadedEvent" DisplayName="LevelLoadedEvent"> | ||
<LevelName Value=""/> | ||
</Record> | ||
<Record Id="OwnerChangedEvent" DisplayName="OwnerChangedEvent"> | ||
<EntityId Value="0"/> | ||
<NewOwnerId Value="0"/> | ||
<OldOwnerId Value="0"/> | ||
</Record> | ||
<Record Id="TargetAcquiredEvent" DisplayName="TargetAcquiredEvent"> | ||
<EntityId Value="0"/> | ||
<TargetId Value="0"/> | ||
</Record> | ||
<Record Id="TimerElapsedEvent" DisplayName="TimerElapsedEvent"> | ||
<EntityId Value="0"/> | ||
</Record> | ||
<Record Id="TimerStartedEvent" DisplayName="TimerStartedEvent"> | ||
<EntityId Value="0"/> | ||
</Record> | ||
</Records> |
13 changes: 13 additions & 0 deletions
13
...xamples/Tome Example Code Generation Project/Tome Example Code Generation Project.tfields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Fields> | ||
<Field Id="AttackerId" DisplayName="AttackerId" Description="Id of the attacking entity." Type="Integer" DefaultValue="0"/> | ||
<Field Id="DefenderId" DisplayName="DefenderId" Description="Id of the attacked entity." Type="Integer" DefaultValue="0"/> | ||
<Field Id="EffectId" DisplayName="EffectId" Description="Id of the effect." Type="Integer" DefaultValue="0"/> | ||
<Field Id="EntityId" DisplayName="EntityId" Description="Id of the entity." Type="Integer" DefaultValue="0"/> | ||
<Field Id="LevelName" DisplayName="LevelName" Description="Name of the level." Type="String" DefaultValue=""/> | ||
<Field Id="NewHealth" DisplayName="NewHealth" Description="Health of the entity after the change." Type="Integer" DefaultValue="0"/> | ||
<Field Id="NewOwnerId" DisplayName="NewOwnerId" Description="Id of the owner after the change." Type="Integer" DefaultValue="0"/> | ||
<Field Id="OldHealth" DisplayName="OldHealth" Description="Health of the entity before the change." Type="Integer" DefaultValue="0"/> | ||
<Field Id="OldOwnerId" DisplayName="OldOwnerId" Description="Id of the owner before the change." Type="Integer" DefaultValue="0"/> | ||
<Field Id="TargetId" DisplayName="TargetId" Description="Entity id of the target that entered the acquisition range." Type="Integer" DefaultValue="0"/> | ||
</Fields> |
23 changes: 23 additions & 0 deletions
23
Doc/Examples/Tome Example Code Generation Project/Tome Example Code Generation Project.tproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<TomeProject Version="4"> | ||
<Name>Tome Example Code Generation Project</Name> | ||
<Locale>en_US</Locale> | ||
<Components> | ||
<Path>Tome Example Code Generation Project</Path> | ||
</Components> | ||
<FieldDefinitions> | ||
<Path>Tome Example Code Generation Project</Path> | ||
</FieldDefinitions> | ||
<Records> | ||
<Path>Tome Example Code Generation Project</Path> | ||
</Records> | ||
<RecordExportTemplates> | ||
<Path>CSharpEventTypes.texport</Path> | ||
<Path>CSharpEventClasses.texport</Path> | ||
<Path>CSharpEventSerializer.texport</Path> | ||
<Path>CSharpEventDeserializer.texport</Path> | ||
</RecordExportTemplates> | ||
<Types> | ||
<Path>Tome Example Code Generation Project</Path> | ||
</Types> | ||
</TomeProject> |
2 changes: 2 additions & 0 deletions
2
...Examples/Tome Example Code Generation Project/Tome Example Code Generation Project.ttypes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Types Version="2"/> |
File renamed without changes.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
, |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
Doc/Examples/Tome Example Data Project/StarCraft II XML.texportld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
Doc/Examples/Tome Example Data Project/StarCraft II XML.texportmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
Doc/Examples/Tome Example Data Project/StarCraft II XML.texportrd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
1 change: 1 addition & 0 deletions
1
Doc/Examples/Tome Example Data Project/StarCraft II XML.texportvd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.