You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**WCS** is a *handy framework* that provides *useful abstraction* for your *combat systems*. It allows you to create **any kind of combat system** with **ease**, providing *tools* and *covering basic and tedious stuff*, like *replication*, *skill creation*, side effects, requests to server.*
4
-
5
-
**WCS** is made utilizing **[Typescript](<https://typescriptlang.org/>)** and compiled to luau using **[roblox-ts](<https://roblox-ts.com/>)**. It provides support for
6
-
[roblox-ts](<https://roblox-ts.com/>) users and [luau](<https://luau-lang.org/>) users,
Registers a new [skill](./skill.md) with name specified in an argument.
78
41
79
42
**`Parameters:`**
80
43
* Name: `string`
44
+
* ExtendsFrom: `Skill`
81
45
82
46
**`Returns:`**
83
47
*[Skill](./skill.md)
84
48
85
-
```lua
86
-
localAttack=WCS.RegisterSkill("Attack")
87
-
```
49
+
## `RegisterHoldableSkill(name, extendsFrom)`
50
+
Registers a new [holdable skill](../tutorial/skills/holdable.md) with name specified in an argument.
51
+
52
+
**`Parameters:`**
53
+
* Name: `string`
54
+
* ExtendsFrom: `Skill`
88
55
89
-
## `Character`
90
-
An exported [character](./character.md) class. Cannot be changed.
56
+
**`Returns:`**
57
+
*[Holdable Skill](../tutorial/skills/holdable.md)
58
+
59
+
## `DefineMessage(fn, config)`
60
+
Registers a [message](../tutorial/messages/intro.md).
61
+
62
+
**`Parameters:`**
63
+
* Function: `function`
64
+
* Config: `MessageConfig`
65
+
66
+
## `Character`**@readonly**
67
+
An exported [character](./character.md) class.
91
68
92
-
## `CreateMoveset(name, skills)`
69
+
## `CreateMoveset(name, skills, constructorArgs)`
93
70
Creates a [Moveset] object and returns it.
94
71
Accepts the name and array of skills.
95
72
96
73
**`Parameters:`**
97
74
* Name: `string`
98
75
* Skills: ```{AnySkillConstructor}```
76
+
* ConstructorArguments: ```{[string | SkillImpl]: any[]}``` - an object that contains array of `ConstructorArguments` that skill should get instantiated with.
99
77
100
78
**`Returns:`**
101
79
*[Moveset]
102
80
103
-
<TabsgroupId="languages">
104
-
<TabItemvalue="TypeScript"default>
105
-
106
-
```ts
107
-
const Moveset =CreateMoveset("Mage", [Attack]);
108
-
```
109
-
110
-
</TabItem>
111
-
<TabItemvalue="Luau">
112
-
113
-
```lua
114
-
localClient=WCS.CreateMoveset("Mage", {Attack})
115
-
```
116
-
117
-
</TabItem>
118
-
</Tabs>
119
-
120
81
## `GetMovesetObjectByName(name)`
121
82
Retrieves [Moveset] object by its name if registered.
122
83
@@ -126,27 +87,9 @@ Retrieves [Moveset] object by its name if registered.
0 commit comments