Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/UnitAI.js
Show First 20 Lines • Show All 1,009 Lines • ▼ Show 20 Lines | "IDLE": { | ||||
this.StopTimer(); | this.StopTimer(); | ||||
}, | }, | ||||
"Timer": function(msg) { | "Timer": function(msg) { | ||||
let cmpFormation = Engine.QueryInterface(this.entity, IID_Formation); | let cmpFormation = Engine.QueryInterface(this.entity, IID_Formation); | ||||
if (!cmpFormation) | if (!cmpFormation) | ||||
return; | return; | ||||
if (this.TestAllMemberFunction("IsIdle")) | if (this.TestAllMemberFunction("IsIdle")) { | ||||
Lint: brace-rules/brace-on-same-line: Opening curly brace appears on the same line as controlling statement. | |||||
Lint: brace-rules/brace-on-same-line Opening curly brace appears on the same line as controlling statement. Lint: brace-rules/brace-on-same-line: Opening curly brace appears on the same line as controlling statement. | |||||
cmpFormation.MoveMembersIntoFormation(false, false); | cmpFormation.MoveMembersIntoFormation(false, false); | ||||
this.StopTimer(); | |||||
} | |||||
}, | }, | ||||
}, | }, | ||||
"WALKING": { | "WALKING": { | ||||
"enter": function() { | "enter": function() { | ||||
let cmpFormation = Engine.QueryInterface(this.entity, IID_Formation); | let cmpFormation = Engine.QueryInterface(this.entity, IID_Formation); | ||||
cmpFormation.SetRearrange(true); | cmpFormation.SetRearrange(true); | ||||
▲ Show 20 Lines • Show All 5,496 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Opening curly brace appears on the same line as controlling statement.